-
Notifications
You must be signed in to change notification settings - Fork 29.2k
Migrate FloatingActionButton
to Material 3
#94486
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
@@ -171,6 +171,7 @@ void main() { | |||
testWidgets('Floating Action Button elevation when highlighted - effect', (WidgetTester tester) async { | |||
await tester.pumpWidget( | |||
MaterialApp( | |||
theme: ThemeData.light().copyWith(useMaterial3: true), |
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 think it'd be easy to miss one of these. Consider creating a material 3 theme in setUp
or setUpAll
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.
LGTM
Gold has detected about 3 new digest(s) on patchset 4. |
Gold has detected about 3 new digest(s) on patchset 5. |
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
FloatingActionButton
to Material 3
Part of: #91605
Updated the
FloatingActionButton
widget with support for Material Design 3.In order to use the
FloatingActionButton
with the new Material 3 defaults, turn on theuseMaterial3
flag in theThemeData
:This also adds a new
iconSize
parameter to theFloatingActionButtonThemeData
that allows apps to configure the size used by the icon inside the FAB.Pre-launch Checklist
///
).