Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(93)

Side by Side Diff: sky/sdk/lib/widgets/dialog.dart

Issue 1223153004: Make the drawer, popup menus, dialogs, and settings page scrollable. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/sdk/lib/widgets/basic.dart ('k') | sky/sdk/lib/widgets/drawer.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 'scrollable_viewport.dart';
10 import 'theme.dart';
10 11
11 /// A material design dialog 12 /// A material design dialog
12 /// 13 ///
13 /// <https://www.google.com/design/spec/components/dialogs.html> 14 /// <https://www.google.com/design/spec/components/dialogs.html>
14 class Dialog extends Component { 15 class Dialog extends Component {
15 Dialog({ 16 Dialog({
16 String key, 17 String key,
17 this.title, 18 this.title,
18 this.content, 19 this.content,
19 this.actions, 20 this.actions,
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 ), 82 ),
82 new Center( 83 new Center(
83 child: new Container( 84 child: new Container(
84 margin: new EdgeDims.symmetric(horizontal: 40.0, vertical: 24.0), 85 margin: new EdgeDims.symmetric(horizontal: 40.0, vertical: 24.0),
85 child: new ConstrainedBox( 86 child: new ConstrainedBox(
86 constraints: new BoxConstraints(minWidth: 280.0), 87 constraints: new BoxConstraints(minWidth: 280.0),
87 child: new Material( 88 child: new Material(
88 level: 4, 89 level: 4,
89 color: _color, 90 color: _color,
90 child: new ShrinkWrapWidth( 91 child: new ShrinkWrapWidth(
91 child: new Block(children) 92 child: new ScrollableBlock(children)
92 ) 93 )
93 ) 94 )
94 ) 95 )
95 ) 96 )
96 ) 97 )
97 ]); 98 ]);
98 } 99 }
99 } 100 }
OLDNEW
« no previous file with comments | « sky/sdk/lib/widgets/basic.dart ('k') | sky/sdk/lib/widgets/drawer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698