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/framework/rendering/box.dart'; | 5 import 'package:sky/rendering/box.dart'; |
6 import 'package:sky/framework/rendering/flex.dart'; | 6 import 'package:sky/rendering/flex.dart'; |
7 import 'package:sky/framework/widgets/raised_button.dart'; | 7 import 'package:sky/widgets/raised_button.dart'; |
8 import 'package:sky/framework/widgets/basic.dart'; | 8 import 'package:sky/widgets/basic.dart'; |
9 | 9 |
10 class ContainerApp extends App { | 10 class ContainerApp extends App { |
11 UINode build() { | 11 UINode build() { |
12 return new Flex([ | 12 return new Flex([ |
13 new Container( | 13 new Container( |
14 key: 'a', | 14 key: 'a', |
15 padding: new EdgeDims.all(10.0), | 15 padding: new EdgeDims.all(10.0), |
16 margin: new EdgeDims.all(10.0), | 16 margin: new EdgeDims.all(10.0), |
17 decoration: new BoxDecoration(backgroundColor: const Color(0xFFCCCCCC)
), | 17 decoration: new BoxDecoration(backgroundColor: const Color(0xFFCCCCCC)
), |
18 child: new Image( | 18 child: new Image( |
(...skipping 18 matching lines...) Expand all Loading... |
37 ], | 37 ], |
38 direction: FlexDirection.vertical, | 38 direction: FlexDirection.vertical, |
39 justifyContent: FlexJustifyContent.spaceBetween | 39 justifyContent: FlexJustifyContent.spaceBetween |
40 ); | 40 ); |
41 } | 41 } |
42 } | 42 } |
43 | 43 |
44 void main() { | 44 void main() { |
45 new ContainerApp(); | 45 new ContainerApp(); |
46 } | 46 } |
OLD | NEW |