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 library components_checkbox; |
| 6 |
5 import '../fn.dart'; | 7 import '../fn.dart'; |
6 import '../layout.dart'; | 8 import '../layout.dart'; |
7 import 'button_base.dart'; | 9 import 'button_base.dart'; |
8 import 'dart:sky' as sky; | 10 import 'dart:sky' as sky; |
9 | 11 |
10 typedef void ValueChanged(value); | 12 typedef void ValueChanged(value); |
11 | 13 |
12 class Checkbox extends ButtonBase { | 14 class Checkbox extends ButtonBase { |
13 static final Style _style = new Style(''' | 15 static final Style _style = new Style(''' |
14 transform: translateX(0); | 16 transform: translateX(0); |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 style: checked ? _checkedStyle : _uncheckedStyle | 80 style: checked ? _checkedStyle : _uncheckedStyle |
79 ) | 81 ) |
80 ] | 82 ] |
81 ) | 83 ) |
82 ] | 84 ] |
83 ), | 85 ), |
84 onGestureTap: _handleClick | 86 onGestureTap: _handleClick |
85 ); | 87 ); |
86 } | 88 } |
87 } | 89 } |
OLD | NEW |