-
Notifications
You must be signed in to change notification settings - Fork 171
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
[NO ISSUE] Migrated Sample App main activity to Jetpack Compose #348
Conversation
val context = LocalContext.current | ||
|
||
Column(Modifier.padding(16.dp, 0.dp, 16.dp, 0.dp).fillMaxSize()) { | ||
Spacer(modifier = Modifier.size(20.dp)) |
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.
You could replace all the Spacer(modifier = Modifier.size(20.dp))
with a parameter in the parent Column:
Column(
Modifier
.padding(horizontal = 16.dp)
.fillMaxSize(),
verticalArrangement = Arrangement.spacedBy(20.dp)
) {
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.
Many thanks for your suggestion!
Button( | ||
colors = ButtonDefaults.buttonColors( | ||
backgroundColor = Color(context.resources.getColor(R.color.leku_app_blue)), | ||
contentColor = Color.White | ||
), |
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's ok for now, but you should use Theme color when you create the theme.
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.
Sure! The next step is to create the Theme for the picker activity :)
ISSUE
No issue
Description
In Order to migrate all the library to Jetpack Compose we started with adding Compose to the project and migrating the sample activity layout.
Screenshots
Mandatory GIF