-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Bottom appbar/sheet shadow property #121406
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
Bottom appbar/sheet shadow property #121406
Conversation
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.
Creating a shadowColor theme property is a good move. Just small small-stuff feedback.
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.
LGTM
| Color? get surfaceTintColor => Theme.of(context).colorScheme.surfaceTint; | ||
|
|
||
| @override | ||
| Color get shadowColor => Colors.transparent; |
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.
Revised re-land of #119819. Fixes #118150 and #118244.
Instead of hard-defaulting to no shadow in M3, we add a
shadowColorproperty tobottomAppBarandbottomSheet, and their respective themes.The M3 default is then set to
Colors.transparentshadow, but can be overridden by users.Updated M3 defaults:

Internal testing has been conducted and g3fix created (cl/512056372).
Pre-launch Checklist
///).