| OLD | NEW |
| 1 library item; | 1 library item; |
| 2 | 2 |
| 3 import '../../../framework/fn.dart'; |
| 3 import 'dart:sky' as sky; | 4 import 'dart:sky' as sky; |
| 4 import 'fn.dart'; | |
| 5 import 'widgets.dart'; | 5 import 'widgets.dart'; |
| 6 | 6 |
| 7 enum Color { RED, GREEN } | 7 enum Color { RED, GREEN } |
| 8 | 8 |
| 9 class Item extends Component { | 9 class Item extends Component { |
| 10 | 10 |
| 11 String label; | 11 String label; |
| 12 | 12 |
| 13 Color _color = Color.GREEN; | 13 Color _color = Color.GREEN; |
| 14 | 14 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 32 ] | 32 ] |
| 33 ); | 33 ); |
| 34 } | 34 } |
| 35 | 35 |
| 36 void changed(Object value) { | 36 void changed(Object value) { |
| 37 setState(() { | 37 setState(() { |
| 38 _color = value; | 38 _color = value; |
| 39 }); | 39 }); |
| 40 } | 40 } |
| 41 } | 41 } |
| OLD | NEW |