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 'dart:sky' as sky; | 5 import 'dart:sky' as sky; |
6 | 6 |
7 import 'package:sky/framework/theme2/colors.dart' as colors; | 7 import 'package:sky/framework/theme2/colors.dart' as colors; |
8 | 8 |
9 import '../animation/animated_value.dart'; | 9 import '../animation/animated_value.dart'; |
10 import '../animation/curves.dart'; | 10 import '../animation/curves.dart'; |
11 import '../rendering/box.dart'; | 11 import '../rendering/box.dart'; |
12 import 'animated_component.dart'; | 12 import 'animated_component.dart'; |
13 import 'wrappers.dart'; | 13 import 'basic.dart'; |
14 | 14 |
15 typedef void ValueChanged(value); | 15 typedef void ValueChanged(value); |
16 | 16 |
17 const double _kMidpoint = 0.5; | 17 const double _kMidpoint = 0.5; |
18 const double _kCheckDuration = 200.0; | 18 const double _kCheckDuration = 200.0; |
19 const sky.Color _kUncheckedColor = const sky.Color(0x8A000000); | 19 const sky.Color _kUncheckedColor = const sky.Color(0x8A000000); |
20 // TODO(jackson): This should change colors with the theme | 20 // TODO(jackson): This should change colors with the theme |
21 sky.Color _kCheckedColor = colors.Purple[500]; | 21 sky.Color _kCheckedColor = colors.Purple[500]; |
22 const double _kEdgeSize = 20.0; | 22 const double _kEdgeSize = 20.0; |
23 const double _kEdgeRadius = 1.0; | 23 const double _kEdgeRadius = 1.0; |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 canvas.drawPath(path, paint); | 126 canvas.drawPath(path, paint); |
127 } | 127 } |
128 } | 128 } |
129 ) | 129 ) |
130 ), | 130 ), |
131 onGestureTap: _handleClick | 131 onGestureTap: _handleClick |
132 ); | 132 ); |
133 } | 133 } |
134 | 134 |
135 } | 135 } |
OLD | NEW |