| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 import '../theme/colors.dart' as colors; | 5 import '../theme/colors.dart' as colors; |
| 6 import 'basic.dart'; | 6 import 'basic.dart'; |
| 7 import 'default_text_style.dart'; | 7 import 'default_text_style.dart'; |
| 8 import 'material.dart'; | 8 import 'material.dart'; |
| 9 import "theme.dart"; | 9 import "theme.dart"; |
| 10 | 10 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 Color get _color { | 38 Color get _color { |
| 39 switch (Theme.of(this).brightness) { | 39 switch (Theme.of(this).brightness) { |
| 40 case ThemeBrightness.light: | 40 case ThemeBrightness.light: |
| 41 return colors.White; | 41 return colors.White; |
| 42 case ThemeBrightness.dark: | 42 case ThemeBrightness.dark: |
| 43 return colors.Grey[800]; | 43 return colors.Grey[800]; |
| 44 } | 44 } |
| 45 } | 45 } |
| 46 | 46 |
| 47 @override |
| 47 Widget build() { | 48 Widget build() { |
| 48 Container mask = new Container( | 49 Container mask = new Container( |
| 49 decoration: const BoxDecoration( | 50 decoration: const BoxDecoration( |
| 50 backgroundColor: const Color(0x7F000000))); | 51 backgroundColor: const Color(0x7F000000))); |
| 51 | 52 |
| 52 List<Widget> children = new List<Widget>(); | 53 List<Widget> children = new List<Widget>(); |
| 53 | 54 |
| 54 if (title != null) { | 55 if (title != null) { |
| 55 children.add(new Padding( | 56 children.add(new Padding( |
| 56 padding: new EdgeDims(24.0, 24.0, content == null ? 20.0 : 0.0, 24.0), | 57 padding: new EdgeDims(24.0, 24.0, content == null ? 20.0 : 0.0, 24.0), |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 child: new ShrinkWrapWidth( | 91 child: new ShrinkWrapWidth( |
| 91 child: new Block(children) | 92 child: new Block(children) |
| 92 ) | 93 ) |
| 93 ) | 94 ) |
| 94 ) | 95 ) |
| 95 ) | 96 ) |
| 96 ) | 97 ) |
| 97 ]); | 98 ]); |
| 98 } | 99 } |
| 99 } | 100 } |
| OLD | NEW |