-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ANDROAPP-5592-mobile-ui-Create-List-Card-component #80
ANDROAPP-5592-mobile-ui-Create-List-Card-component #80
Conversation
designsystem/src/commonMain/kotlin/org/hisp/dhis/mobile/ui/designsystem/component/ListCard.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that the image can be stored in the common
module instead of designsystem
to not package it with the library
|
||
@OptIn(ExperimentalResourceApi::class) | ||
@Composable | ||
fun provideImage(resourceName: String): Painter = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thin that this method can be set in the common
module the library is not intended to store jpgs, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is just for the purpose of adding a painter to the Image and as a sample, it is in the same place as the providedhis2Icon method so I think it's ok, it's not intended to store jpgs and the user won't use it, as if they pass the painter with their own resource it'll work on both platforms
You have done a great job. Congratulations! 🥳 |
e533733
to
6206277
Compare
1d2de79
to
6a9f8ed
Compare
6a9f8ed
to
b3bb529
Compare
ae63c91
to
5aea3d4
Compare
No description provided.