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

Side by Side Diff: sky/sdk/example/widgets/container.dart

Issue 1226113007: Add @override annotation to known overriden methods (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/example/widgets/card_collection.dart ('k') | sky/sdk/example/widgets/navigation.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 '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 {
11 @override
11 Widget build() { 12 Widget build() {
12 return new Flex([ 13 return new Flex([
13 new Container( 14 new Container(
14 padding: new EdgeDims.all(10.0), 15 padding: new EdgeDims.all(10.0),
15 margin: new EdgeDims.all(10.0), 16 margin: new EdgeDims.all(10.0),
16 decoration: new BoxDecoration(backgroundColor: const Color(0xFFCCCCCC) ), 17 decoration: new BoxDecoration(backgroundColor: const Color(0xFFCCCCCC) ),
17 child: new NetworkImage( 18 child: new NetworkImage(
18 src: "https://www.dartlang.org/logos/dart-logo.png", 19 src: "https://www.dartlang.org/logos/dart-logo.png",
19 size: new Size(300.0, 300.0) 20 size: new Size(300.0, 300.0)
20 ) 21 )
(...skipping 21 matching lines...) Expand all
42 ], 43 ],
43 direction: FlexDirection.vertical, 44 direction: FlexDirection.vertical,
44 justifyContent: FlexJustifyContent.spaceBetween 45 justifyContent: FlexJustifyContent.spaceBetween
45 ); 46 );
46 } 47 }
47 } 48 }
48 49
49 void main() { 50 void main() {
50 runApp(new ContainerApp()); 51 runApp(new ContainerApp());
51 } 52 }
OLDNEW
« no previous file with comments | « sky/sdk/example/widgets/card_collection.dart ('k') | sky/sdk/example/widgets/navigation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698