From ab46cc2ef5d9f2a9d9e967e461967e9ea861a52b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Drago=C8=99=20Tiselice?= Date: Thu, 15 Sep 2016 13:41:27 -0700 Subject: [PATCH] Rmoved magical color. (#5886) Changed drawer header to use theme's divider color. --- packages/flutter/lib/src/material/drawer_header.dart | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/flutter/lib/src/material/drawer_header.dart b/packages/flutter/lib/src/material/drawer_header.dart index 2d9851c967..b277085ea9 100644 --- a/packages/flutter/lib/src/material/drawer_header.dart +++ b/packages/flutter/lib/src/material/drawer_header.dart @@ -65,14 +65,15 @@ class DrawerHeader extends StatelessWidget { @override Widget build(BuildContext context) { assert(debugCheckHasMaterial(context)); + final ThemeData theme = Theme.of(context); final double statusBarHeight = MediaQuery.of(context).padding.top; return new Container( height: statusBarHeight + _kDrawerHeaderHeight, margin: const EdgeInsets.only(bottom: 8.0), decoration: new BoxDecoration( - border: const Border( - bottom: const BorderSide( - color: const Color(0xFFD1D9E1), + border: new Border( + bottom: new BorderSide( + color: theme.dividerColor, width: 1.0 ) ) @@ -83,7 +84,7 @@ class DrawerHeader extends StatelessWidget { duration: duration, curve: curve, child: child == null ? null : new DefaultTextStyle( - style: Theme.of(context).textTheme.body2, + style: theme.textTheme.body2, child: child ) )