Commit f7dfcd24 authored by Hans Muller's avatar Hans Muller

Merge pull request #1728 from HansMuller/kStatusBarHeight

removed kStatusBarHeight constant
parents 7458ed22 b96939a6
......@@ -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
......
......@@ -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(
......
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