| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 children.add(new Padding( | 65 children.add(new Padding( |
| 66 padding: const EdgeDims(20.0, 24.0, 24.0, 24.0), | 66 padding: const EdgeDims(20.0, 24.0, 24.0, 24.0), |
| 67 child: new DefaultTextStyle( | 67 child: new DefaultTextStyle( |
| 68 style: Theme.of(this).text.subhead, | 68 style: Theme.of(this).text.subhead, |
| 69 child: content | 69 child: content |
| 70 ) | 70 ) |
| 71 )); | 71 )); |
| 72 } | 72 } |
| 73 | 73 |
| 74 if (actions != null) | 74 if (actions != null) |
| 75 children.add(new Flex(actions, justifyContent: FlexJustifyContent.flexEnd)
); | 75 children.add(new Flex(actions, justifyContent: FlexJustifyContent.end)); |
| 76 | 76 |
| 77 return new Stack([ | 77 return new Stack([ |
| 78 new Listener( | 78 new Listener( |
| 79 child: mask, | 79 child: mask, |
| 80 onGestureTap: (_) => onDismiss() | 80 onGestureTap: (_) => onDismiss() |
| 81 ), | 81 ), |
| 82 new Center( | 82 new Center( |
| 83 child: new Container( | 83 child: new Container( |
| 84 margin: new EdgeDims.symmetric(horizontal: 40.0, vertical: 24.0), | 84 margin: new EdgeDims.symmetric(horizontal: 40.0, vertical: 24.0), |
| 85 child: new ConstrainedBox( | 85 child: new ConstrainedBox( |
| 86 constraints: new BoxConstraints(minWidth: 280.0), | 86 constraints: new BoxConstraints(minWidth: 280.0), |
| 87 child: new Material( | 87 child: new Material( |
| 88 level: 4, | 88 level: 4, |
| 89 color: _color, | 89 color: _color, |
| 90 child: new ShrinkWrapWidth( | 90 child: new ShrinkWrapWidth( |
| 91 child: new Block(children) | 91 child: new Block(children) |
| 92 ) | 92 ) |
| 93 ) | 93 ) |
| 94 ) | 94 ) |
| 95 ) | 95 ) |
| 96 ) | 96 ) |
| 97 ]); | 97 ]); |
| 98 } | 98 } |
| 99 } | 99 } |
| OLD | NEW |