Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(933)

Side by Side Diff: sky/examples/fn/widgets/item.dart

Issue 983173003: Remove unused Effen/widgets component (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 library item;
2
3 import '../../../framework/fn.dart';
4 import 'dart:sky' as sky;
5 import 'widgets.dart';
6
7 enum Color { RED, GREEN }
8
9 class Item extends Component {
10
11 String label;
12
13 Color _color = Color.GREEN;
14
15 Item({ Object key, this.label }) : super(key: key);
16
17 Node render() {
18 return new Container(
19 children: [
20 new Radio(
21 onChanged: changed,
22 value: Color.GREEN,
23 groupValue: _color
24 ),
25 new Radio(
26 onChanged: changed,
27 value: Color.RED,
28 groupValue: _color
29 ),
30
31 new Text("$label: ${Color.values[_color.index]}")
32 ]
33 );
34 }
35
36 void changed(Object value) {
37 setState(() {
38 _color = value;
39 });
40 }
41 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698