-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Add IconButton.filled, IconButton.filledTonal, IconButton.outlined
#121884
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
Conversation
IconButton.filled, IconButton.filledTonal, IconButton.outlined
64dae0a to
c1c730f
Compare
c1c730f to
e2db475
Compare
HansMuller
left a comment
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.
Nicely done. LGTM
| }); | ||
| }, | ||
| ), | ||
| const SizedBox(width: 10,), |
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.
In cases like this we don't usually include the trailing comma:
| const SizedBox(width: 10,), | |
| const SizedBox(width: 10), |
Here and elsewhere.
| @override | ||
| ButtonStyle defaultStyleOf(BuildContext context) { | ||
| return _IconButtonDefaultsM3(context); | ||
| switch (variant) { |
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
|
@QuncCccccc and @HansMuller, this PR is very nice, love it! However, and sadly based on my tests, it brings the same challenge to theming the A solution to this, with variant themes, is discussed in the related FAB issue here I will open a separate issue later for this case and reference this comment and other related issues. |
Fixes #111800
This PR is to add IconButton.filled, IconButton.tilledTonal and IconButton.outlined constructors.
Pre-launch Checklist
///).