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
f7dfcd24
Commit
f7dfcd24
authored
Feb 09, 2016
by
Hans Muller
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1728 from HansMuller/kStatusBarHeight
removed kStatusBarHeight constant
parents
7458ed22
b96939a6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
constants.dart
packages/flutter/lib/src/material/constants.dart
+0
-3
drawer_header.dart
packages/flutter/lib/src/material/drawer_header.dart
+2
-1
No files found.
packages/flutter/lib/src/material/constants.dart
View file @
f7dfcd24
...
...
@@ -4,9 +4,6 @@
import
'package:flutter/widgets.dart'
;
// TODO(ianh): Figure out actual specced height for status bar
const
double
kStatusBarHeight
=
50.0
;
// TODO(eseidel) Toolbar needs to change size based on orientation:
// http://www.google.com/design/spec/layout/structure.html#structure-app-bar
// Mobile Landscape: 48dp
...
...
packages/flutter/lib/src/material/drawer_header.dart
View file @
f7dfcd24
...
...
@@ -18,8 +18,9 @@ class DrawerHeader extends StatelessComponent {
Widget
build
(
BuildContext
context
)
{
assert
(
debugCheckHasMaterial
(
context
));
final
double
statusBarHeight
=
(
MediaQuery
.
of
(
context
)?.
padding
??
EdgeDims
.
zero
).
top
;
return
new
Container
(
height:
kS
tatusBarHeight
+
kMaterialDrawerHeight
,
height:
s
tatusBarHeight
+
kMaterialDrawerHeight
,
decoration:
new
BoxDecoration
(
backgroundColor:
Theme
.
of
(
context
).
cardColor
,
border:
const
Border
(
...
...
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