-
Notifications
You must be signed in to change notification settings - Fork 4
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
Remove default padding in compose wrap button #321
Conversation
📱 New catalog for testing generated: Download |
📱 New catalog for testing generated: Download |
@@ -26,6 +26,7 @@ class Button @JvmOverloads constructor( | |||
private var style: ButtonStyle by mutableStateOf(ButtonStyle.PRIMARY) | |||
private var isEnable: Boolean by mutableStateOf(true) | |||
private var onClick: () -> Unit by mutableStateOf({}) | |||
private var invalidatePadding: Boolean by mutableStateOf(false) |
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 would rename all to invalidatePaddings
just to maintain the same name that we use in compose
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!
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.
Nice
📱 New catalog for testing generated: Download |
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.
👍
🥅 What's the goal?
Remove default padding in compose wrap button (button2.Button)
When we use button2.Button in xml, it has a default padding. We should add the option to remove this default padding
🚧 How do we do it?
☑️ Checks
🧪 How can I test this?
No tests