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 '../theme2/colors.dart'; | 5 import '../theme/colors.dart'; |
6 import 'basic.dart'; | 6 import 'basic.dart'; |
7 import 'material_button.dart'; | 7 import 'material_button.dart'; |
8 | 8 |
9 export 'material_button.dart' show MaterialButtonTheme; | 9 export 'material_button.dart' show MaterialButtonTheme; |
10 | 10 |
11 class FlatButton extends MaterialButton { | 11 class FlatButton extends MaterialButton { |
12 FlatButton({ | 12 FlatButton({ |
13 String key, | 13 String key, |
14 Widget child, | 14 Widget child, |
15 bool enabled: true, | 15 bool enabled: true, |
(...skipping 11 matching lines...) Expand all Loading... |
27 switch (theme) { | 27 switch (theme) { |
28 case MaterialButtonTheme.light: | 28 case MaterialButtonTheme.light: |
29 return Grey[400]; | 29 return Grey[400]; |
30 case MaterialButtonTheme.dark: | 30 case MaterialButtonTheme.dark: |
31 return Grey[200]; | 31 return Grey[200]; |
32 } | 32 } |
33 } | 33 } |
34 | 34 |
35 int get level => null; | 35 int get level => null; |
36 } | 36 } |
OLD | NEW |