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

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

Issue 1232313002: Use package:sky imports consistently (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: fix BUILD.gn 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/material.dart ('k') | sky/sdk/lib/widgets/menu_divider.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 'basic.dart'; 5 import 'package:sky/widgets/basic.dart';
6 import 'button_base.dart'; 6 import 'package:sky/widgets/button_base.dart';
7 import 'ink_well.dart'; 7 import 'package:sky/widgets/ink_well.dart';
8 import 'material.dart'; 8 import 'package:sky/widgets/material.dart';
9 9
10 // Rather than using this class directly, please use FlatButton or RaisedButton. 10 // Rather than using this class directly, please use FlatButton or RaisedButton.
11 abstract class MaterialButton extends ButtonBase { 11 abstract class MaterialButton extends ButtonBase {
12 12
13 MaterialButton({ 13 MaterialButton({
14 String key, 14 String key,
15 this.child, 15 this.child,
16 this.enabled: true, 16 this.enabled: true,
17 this.onPressed 17 this.onPressed
18 }) : super(key: key); 18 }) : super(key: key);
(...skipping 27 matching lines...) Expand all
46 child: enabled ? new InkWell(child: contents) : contents, 46 child: enabled ? new InkWell(child: contents) : contents,
47 level: level, 47 level: level,
48 color: color 48 color: color
49 ) 49 )
50 ), 50 ),
51 onGestureTap: (_) { if (onPressed != null && enabled) onPressed(); } 51 onGestureTap: (_) { if (onPressed != null && enabled) onPressed(); }
52 ); 52 );
53 } 53 }
54 54
55 } 55 }
OLDNEW
« no previous file with comments | « sky/sdk/lib/widgets/material.dart ('k') | sky/sdk/lib/widgets/menu_divider.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698