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 'package:sky/rendering/box.dart'; | 5 import 'package:sky/rendering/box.dart'; |
6 import 'package:sky/rendering/flex.dart'; | 6 import 'package:sky/rendering/flex.dart'; |
7 import 'package:sky/widgets/raised_button.dart'; | 7 import 'package:sky/widgets/raised_button.dart'; |
8 import 'package:sky/widgets/basic.dart'; | 8 import 'package:sky/widgets/basic.dart'; |
9 | 9 |
10 class ContainerApp extends App { | 10 class ContainerApp extends App { |
(...skipping 20 matching lines...) Expand all Loading... |
31 onPressed: () => print("Hello World") | 31 onPressed: () => print("Hello World") |
32 ), | 32 ), |
33 new RaisedButton( | 33 new RaisedButton( |
34 key: 'b2', | 34 key: 'b2', |
35 child: new Text('DISABLED'), | 35 child: new Text('DISABLED'), |
36 onPressed: () => print("Hello World"), | 36 onPressed: () => print("Hello World"), |
37 enabled: false | 37 enabled: false |
38 ) | 38 ) |
39 ]) | 39 ]) |
40 ), | 40 ), |
41 new FlexExpandingChild( | 41 new Flexible( |
42 new Container( | 42 child: new Container( |
43 decoration: new BoxDecoration(backgroundColor: const Color(0xFF00FFF
F)) | 43 decoration: new BoxDecoration(backgroundColor: const Color(0xFF00FFF
F)) |
44 ) | 44 ) |
45 ), | 45 ), |
46 ], | 46 ], |
47 direction: FlexDirection.vertical, | 47 direction: FlexDirection.vertical, |
48 justifyContent: FlexJustifyContent.spaceBetween | 48 justifyContent: FlexJustifyContent.spaceBetween |
49 ); | 49 ); |
50 } | 50 } |
51 } | 51 } |
52 | 52 |
53 void main() { | 53 void main() { |
54 new ContainerApp(); | 54 new ContainerApp(); |
55 } | 55 } |
OLD | NEW |