Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
ab46cc2e
Commit
ab46cc2e
authored
Sep 15, 2016
by
Dragoș Tiselice
Committed by
GitHub
Sep 15, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rmoved magical color. (#5886)
Changed drawer header to use theme's divider color.
parent
24ab8372
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
drawer_header.dart
packages/flutter/lib/src/material/drawer_header.dart
+5
-4
No files found.
packages/flutter/lib/src/material/drawer_header.dart
View file @
ab46cc2e
...
...
@@ -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
)
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment