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 {
destinationIndex += 1;
}
}
final NavigationDrawerThemeData navigationDrawerTheme = NavigationDrawerTheme.of(context);
return Drawer(
backgroundColor: backgroundColor,
shadowColor: shadowColor,
surfaceTintColor: surfaceTintColor,
elevation: elevation,
backgroundColor: backgroundColor ?? navigationDrawerTheme.backgroundColor,
shadowColor: shadowColor ?? navigationDrawerTheme.shadowColor,
surfaceTintColor: surfaceTintColor ?? navigationDrawerTheme.surfaceTintColor,
elevation: elevation ?? navigationDrawerTheme.elevation,
child: SafeArea(
bottom: false,
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