-
Notifications
You must be signed in to change notification settings - Fork 29.7k
feat: add icon to AlertDialog #104920
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
feat: add icon to AlertDialog #104920
Conversation
57bb050 to
9fe0a43
Compare
|
Material 3 states that the padding between title and content should be 16dp, but currently this padding is 20dp, provided by |
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'd make contentPadding nullable and follow the example that titlePadding sets. Please document similarly, see lines 259-261.
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.
PTAL
|
if
|
|
will fix the test and add more in the next commit :) |
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.
| /// If null, [DialogTheme.iconColor] is used. | |
| /// If null, [DialogTheme.iconColor] is used. If that is also null, ..." |
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.
PTAL
004a852 to
7d543e9
Compare
7a0826f to
c1dac73
Compare
|
Please resolve conflicts, then I can review |
I should've merged instead of rebase 😅 I'm away today, will do this over the weekend 😊 |
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.
| /// of the [icon]. If [title] is _not_ null, an extra 16 pixels of bottom | |
| /// of the [icon]. If [title] is _not_ null, 16 pixels of bottom |
| /// of the [icon]. If [title] is _not_ null, an extra 16 pixels of bottom | |
| /// of the [icon]. If [title] is _not_ null, an extra 16 pixels of bottom |
|
While providing padding can be done with the |
083c07f to
d1097f6
Compare

From Spec:
Flutter (MacOS):
Fixes #104882
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.