Updated on 2026-08-14
This commit is contained in:
parent
2bc8c29f6d
commit
5b95c59a92
6 changed files with 192 additions and 7 deletions
|
|
@ -27,15 +27,20 @@ private const val DISABLED_ICON_ALPHA = 0.4f
|
|||
* [Figma Component](https://www.figma.com/design/14ISV23YB1yVW1uNVwqrKv/Android?node-id=2737-2800&t=ewlXfWwbDnRhjw4B-4)
|
||||
* */
|
||||
@Composable
|
||||
fun BlockchainRow(model: BlockchainRowUM, modifier: Modifier = Modifier, action: @Composable BoxScope.() -> Unit) {
|
||||
fun BlockchainRow(
|
||||
model: BlockchainRowUM,
|
||||
modifier: Modifier = Modifier,
|
||||
itemPadding: PaddingValues = PaddingValues(
|
||||
top = TangemTheme.dimens.spacing8,
|
||||
bottom = TangemTheme.dimens.spacing8,
|
||||
start = TangemTheme.dimens.spacing8,
|
||||
),
|
||||
action: @Composable BoxScope.() -> Unit,
|
||||
) {
|
||||
RowContentContainer(
|
||||
modifier = modifier
|
||||
.heightIn(min = TangemTheme.dimens.size52)
|
||||
.padding(
|
||||
top = TangemTheme.dimens.spacing8,
|
||||
bottom = TangemTheme.dimens.spacing8,
|
||||
start = TangemTheme.dimens.spacing8,
|
||||
),
|
||||
.padding(itemPadding),
|
||||
icon = {
|
||||
RowIcon(
|
||||
resId = model.iconResId,
|
||||
|
|
@ -58,7 +63,7 @@ fun BlockchainRow(model: BlockchainRowUM, modifier: Modifier = Modifier, action:
|
|||
}
|
||||
|
||||
@Composable
|
||||
private fun RowIcon(
|
||||
fun RowIcon(
|
||||
@DrawableRes resId: Int,
|
||||
isColored: Boolean,
|
||||
showAccentBadge: Boolean,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue