Unverified Commit aafdbc6d authored by hangyu's avatar hangyu Committed by GitHub

Add tests for navigation_drawer_theme_test.dart (#130465)

fixes: https://github.com/flutter/flutter/issues/129618
parent d67d2c3d
...@@ -165,12 +165,13 @@ class NavigationDrawer extends StatelessWidget { ...@@ -165,12 +165,13 @@ class NavigationDrawer extends StatelessWidget {
destinationIndex += 1; destinationIndex += 1;
} }
} }
final NavigationDrawerThemeData navigationDrawerTheme = NavigationDrawerTheme.of(context);
return Drawer( return Drawer(
backgroundColor: backgroundColor, backgroundColor: backgroundColor ?? navigationDrawerTheme.backgroundColor,
shadowColor: shadowColor, shadowColor: shadowColor ?? navigationDrawerTheme.shadowColor,
surfaceTintColor: surfaceTintColor, surfaceTintColor: surfaceTintColor ?? navigationDrawerTheme.surfaceTintColor,
elevation: elevation, elevation: elevation ?? navigationDrawerTheme.elevation,
child: SafeArea( child: SafeArea(
bottom: false, bottom: false,
child: ListView( child: ListView(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment