Skip to content
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

Conversation

mike-n-jordan
Copy link
Collaborator

Screenshot 2023-11-22 at 13 33 45
Screenshot 2023-11-22 at 13 33 51
Screenshot 2023-11-22 at 13 34 33
Screenshot 2023-11-22 at 13 35 46
Screenshot 2023-11-22 at 13 35 52
Screenshot 2023-11-22 at 13 35 55
Screenshot 2023-11-22 at 13 36 00

@@ -63,7 +63,10 @@ fun CakeDetailsSheet(
contentDescription = "Add to cart",
)
Spacer(Modifier.width(4.dp))
Text("Add to cart")
Text(
"Add to cart",
Copy link
Contributor

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",
Copy link
Contributor

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",
Copy link
Contributor

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!",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick: add named parameter.

@mike-n-jordan mike-n-jordan merged commit ea0675f into bumble-tech:2.x Nov 22, 2023
@zsoltk zsoltk added documentation Improvements or additions to documentation samples labels Nov 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation samples
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants