Commit ab46cc2e authored by Dragoș Tiselice's avatar Dragoș Tiselice Committed by GitHub

Rmoved magical color. (#5886)

Changed drawer header to use theme's divider color.
parent 24ab8372
...@@ -65,14 +65,15 @@ class DrawerHeader extends StatelessWidget { ...@@ -65,14 +65,15 @@ class DrawerHeader extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
assert(debugCheckHasMaterial(context)); assert(debugCheckHasMaterial(context));
final ThemeData theme = Theme.of(context);
final double statusBarHeight = MediaQuery.of(context).padding.top; final double statusBarHeight = MediaQuery.of(context).padding.top;
return new Container( return new Container(
height: statusBarHeight + _kDrawerHeaderHeight, height: statusBarHeight + _kDrawerHeaderHeight,
margin: const EdgeInsets.only(bottom: 8.0), margin: const EdgeInsets.only(bottom: 8.0),
decoration: new BoxDecoration( decoration: new BoxDecoration(
border: const Border( border: new Border(
bottom: const BorderSide( bottom: new BorderSide(
color: const Color(0xFFD1D9E1), color: theme.dividerColor,
width: 1.0 width: 1.0
) )
) )
...@@ -83,7 +84,7 @@ class DrawerHeader extends StatelessWidget { ...@@ -83,7 +84,7 @@ class DrawerHeader extends StatelessWidget {
duration: duration, duration: duration,
curve: curve, curve: curve,
child: child == null ? null : new DefaultTextStyle( child: child == null ? null : new DefaultTextStyle(
style: Theme.of(context).textTheme.body2, style: theme.textTheme.body2,
child: child child: child
) )
) )
......
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