-
Notifications
You must be signed in to change notification settings - Fork 29.4k
Update NavigationRail to support Material 3 tokens
#99171
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
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.
There should be tokens available for these colors and shapes
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.
_ ___ _____ __ __
| | / __|_ _| \/ |
| |_| (_ | | | | |\/| |
|____\___| |_| |_| |_|
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.
Would be great to add a sample with useMaterial3 enabled
NavigationRail to support Material 3 tokens
Part of: #91605
Updated
NavigationRailwidget to support Material Design 3 tokens.In order to not break anyone currently using this widget, the new support is gated by
ThemeData.useMaterial3flag. To use theNavigationRailwith the Material 3 token defaults, turn on theuseMaterial3flag in theThemeData:This also adds new
minWidthandminExtendedWidthparameters to theNavigationRailThemeData.