Chromium Code Reviews| 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 '../fn.dart'; | 5 import '../fn.dart'; |
| 6 import 'button_base.dart'; | 6 import 'button_base.dart'; |
| 7 import 'dart:sky' as sky; | |
|
eseidel
2015/05/12 21:34:42
Do you want this?
| |
| 7 | 8 |
| 8 typedef void ValueChanged(value); | 9 typedef void ValueChanged(value); |
| 9 | 10 |
| 10 class Checkbox extends ButtonBase { | 11 class Checkbox extends ButtonBase { |
| 11 static final Style _style = new Style(''' | 12 static final Style _style = new Style(''' |
| 12 transform: translateX(0); | 13 transform: translateX(0); |
| 13 display: flex; | 14 display: flex; |
| 14 flex-direction: row; | 15 flex-direction: row; |
| 15 justify-content: center; | 16 justify-content: center; |
| 16 align-items: center; | 17 align-items: center; |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 77 style: checked ? _checkedStyle : _uncheckedStyle | 78 style: checked ? _checkedStyle : _uncheckedStyle |
| 78 ) | 79 ) |
| 79 ] | 80 ] |
| 80 ) | 81 ) |
| 81 ] | 82 ] |
| 82 ), | 83 ), |
| 83 onGestureTap: _handleClick | 84 onGestureTap: _handleClick |
| 84 ); | 85 ); |
| 85 } | 86 } |
| 86 } | 87 } |
| OLD | NEW |