Merge pull request #1728 from HansMuller/kStatusBarHeight

removed kStatusBarHeight constant
This commit is contained in:
Hans Muller 2016-02-09 12:00:45 -08:00
commit f7dfcd24f2
2 changed files with 2 additions and 4 deletions

View File

@ -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

View File

@ -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: kStatusBarHeight + kMaterialDrawerHeight,
height: statusBarHeight + kMaterialDrawerHeight,
decoration: new BoxDecoration(
backgroundColor: Theme.of(context).cardColor,
border: const Border(