| 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 'package:sky/theme/colors.dart' as colors; |
| 6 import 'basic.dart'; | 6 import 'package:sky/widgets/basic.dart'; |
| 7 import 'default_text_style.dart'; | 7 import 'package:sky/widgets/default_text_style.dart'; |
| 8 import 'material.dart'; | 8 import 'package:sky/widgets/material.dart'; |
| 9 import 'scrollable_viewport.dart'; | 9 import 'package:sky/widgets/scrollable_viewport.dart'; |
| 10 import 'theme.dart'; | 10 import 'package:sky/widgets/theme.dart'; |
| 11 | 11 |
| 12 /// A material design dialog | 12 /// A material design dialog |
| 13 /// | 13 /// |
| 14 /// <https://www.google.com/design/spec/components/dialogs.html> | 14 /// <https://www.google.com/design/spec/components/dialogs.html> |
| 15 class Dialog extends Component { | 15 class Dialog extends Component { |
| 16 Dialog({ | 16 Dialog({ |
| 17 String key, | 17 String key, |
| 18 this.title, | 18 this.title, |
| 19 this.content, | 19 this.content, |
| 20 this.actions, | 20 this.actions, |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 child: new ShrinkWrapWidth( | 91 child: new ShrinkWrapWidth( |
| 92 child: new ScrollableBlock(children) | 92 child: new ScrollableBlock(children) |
| 93 ) | 93 ) |
| 94 ) | 94 ) |
| 95 ) | 95 ) |
| 96 ) | 96 ) |
| 97 ) | 97 ) |
| 98 ]); | 98 ]); |
| 99 } | 99 } |
| 100 } | 100 } |
| OLD | NEW |