mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-04-23 03:12:15 +00:00
Update: Improve release items' usability
This commit is contained in:
parent
6092b10be8
commit
702d23b1a9
@ -97,20 +97,14 @@ fun ReleaseItemContent(
|
|||||||
Row(
|
Row(
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.combinedClickable(onClick = {}, onLongClick = { onLongClick(release) })
|
.combinedClickable(onClick = {}, onLongClick = { onLongClick(release) })
|
||||||
.padding(end = 16.dp),
|
.padding(start = 16.dp, end = 8.dp),
|
||||||
verticalAlignment = Alignment.CenterVertically,
|
verticalAlignment = Alignment.CenterVertically,
|
||||||
horizontalArrangement = Arrangement.Start
|
horizontalArrangement = Arrangement.Start
|
||||||
) {
|
) {
|
||||||
IconButton(onClick = { onDownloadClick(release) }) {
|
|
||||||
Icon(
|
|
||||||
imageVector = Icons.Rounded.Download,
|
|
||||||
contentDescription = "Download this version"
|
|
||||||
)
|
|
||||||
}
|
|
||||||
Column(
|
Column(
|
||||||
modifier = modifier
|
modifier = modifier
|
||||||
.height(76.dp)
|
.height(76.dp)
|
||||||
.fillMaxWidth(),
|
.weight(1f),
|
||||||
verticalArrangement = Arrangement.Center,
|
verticalArrangement = Arrangement.Center,
|
||||||
horizontalAlignment = Alignment.Start
|
horizontalAlignment = Alignment.Start
|
||||||
) {
|
) {
|
||||||
@ -147,6 +141,12 @@ fun ReleaseItemContent(
|
|||||||
)
|
)
|
||||||
Spacer(modifier = Modifier.width(Dp.Hairline))
|
Spacer(modifier = Modifier.width(Dp.Hairline))
|
||||||
}
|
}
|
||||||
|
IconButton(onClick = { onDownloadClick(release) }) {
|
||||||
|
Icon(
|
||||||
|
imageVector = Icons.Rounded.Download,
|
||||||
|
contentDescription = stringResource(id = R.string.install)
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user