-
Notifications
You must be signed in to change notification settings - Fork 60
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
Rescale the buttons and checkout screen. #636
Rescale the buttons and checkout screen. #636
Conversation
mike-n-jordan
commented
Nov 22, 2023
@@ -63,7 +63,10 @@ fun CakeDetailsSheet( | |||
contentDescription = "Add to cart", | |||
) | |||
Spacer(Modifier.width(4.dp)) | |||
Text("Add to cart") | |||
Text( | |||
"Add to cart", |
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.
nitpick: add named parameter.
@@ -258,14 +271,20 @@ private fun LazyItemScope.CartActions( | |||
onClick = onClearCart, | |||
colors = ButtonDefaults.buttonColors(containerColor = MaterialTheme.colorScheme.secondary) | |||
) { | |||
Text("Clear cart") | |||
Text( | |||
"Clear cart", |
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.
nitpick: add named parameter.
} | ||
Spacer(modifier = Modifier.requiredWidth(4.dp)) | ||
Button( | ||
onClick = onCheckout, | ||
modifier = Modifier.weight(1f) | ||
) { | ||
Text("Checkout") | ||
Text( | ||
"Checkout", |
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.
nitpick: add named parameter.
@@ -80,7 +80,10 @@ class CartItemsNode( | |||
Button(onClick = { | |||
navigator.goToCakes() | |||
}) { | |||
Text("Get some cakes!") | |||
Text( | |||
"Get some cakes!", |
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.
nitpick: add named parameter.