Skip to content

Commit

Permalink
Add a negative metadata avatar sample to scree
Browse files Browse the repository at this point in the history
  • Loading branch information
msasikanth committed Sep 19, 2023
1 parent d19e3ea commit aaa2837
Showing 1 changed file with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package org.hisp.dhis.common.screens

import androidx.compose.material3.Icon
import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.Color
import org.hisp.dhis.mobile.ui.designsystem.component.AvatarSize
import org.hisp.dhis.mobile.ui.designsystem.component.ColumnComponentContainer
import org.hisp.dhis.mobile.ui.designsystem.component.MetadataAvatar
Expand Down Expand Up @@ -56,5 +57,27 @@ fun IconCardsScreen() {
size = AvatarSize.Large,
)
}
RowComponentContainer {
MetadataAvatar(
icon = {
Icon(
painter = provideDHIS2Icon("dhis2_medicines_negative"),
contentDescription = "",
)
},
iconTint = Color(0xFFE12F58),
size = AvatarSize.Normal,
)
MetadataAvatar(
icon = {
Icon(
painter = provideDHIS2Icon("dhis2_medicines_negative"),
contentDescription = "",
)
},
iconTint = Color(0xFFE12F58),
size = AvatarSize.Large,
)
}
}
}

0 comments on commit aaa2837

Please sign in to comment.