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 '../painting/box_painter.dart'; | 5 import '../painting/box_painter.dart'; |
6 import '../theme2/colors.dart'; | 6 import '../theme2/colors.dart'; |
7 import '../theme2/edges.dart'; | 7 import '../theme2/edges.dart'; |
8 import '../theme2/shadows.dart'; | 8 import '../theme2/shadows.dart'; |
9 import 'basic.dart'; | 9 import 'basic.dart'; |
10 | 10 |
(...skipping 20 matching lines...) Expand all Loading... |
31 boxShadow: shadows[level], | 31 boxShadow: shadows[level], |
32 borderRadius: edges[edge], | 32 borderRadius: edges[edge], |
33 backgroundColor: color == null ? Grey[50] : color, | 33 backgroundColor: color == null ? Grey[50] : color, |
34 shape: edge == MaterialEdge.circle ? Shape.circle : Shape.rectangle | 34 shape: edge == MaterialEdge.circle ? Shape.circle : Shape.rectangle |
35 ), | 35 ), |
36 child: child | 36 child: child |
37 ); | 37 ); |
38 } | 38 } |
39 | 39 |
40 } | 40 } |
OLD | NEW |