mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Merge pull request #1728 from HansMuller/kStatusBarHeight
removed kStatusBarHeight constant
This commit is contained in:
commit
f7dfcd24f2
@ -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(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user