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

Side by Side Diff: sky/framework/components/radio.dart

Issue 1043283003: [Effen] s/Node/UINode/, s/Element/WrapperNode/, s/EventTarget/EventListenerNode/ (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 8 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 | « sky/framework/components/popup_menu_item.dart ('k') | sky/framework/components/scaffold.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 'ink_well.dart'; 7 import 'ink_well.dart';
8 import 'material.dart'; 8 import 'material.dart';
9 9
10 typedef void ValueChanged(value); 10 typedef void ValueChanged(value);
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 margin: 2px;''' 46 margin: 2px;'''
47 ); 47 );
48 48
49 Radio({ 49 Radio({
50 Object key, 50 Object key,
51 this.onChanged, 51 this.onChanged,
52 this.value, 52 this.value,
53 this.groupValue 53 this.groupValue
54 }) : super(key: key); 54 }) : super(key: key);
55 55
56 Node buildContent() { 56 UINode buildContent() {
57 return new EventTarget( 57 return new EventListenerNode(
58 new StyleNode( 58 new StyleNode(
59 new InkWell( 59 new InkWell(
60 children: value == groupValue ? [new Container(style: _dotStyle)] : [] 60 children: value == groupValue ? [new Container(style: _dotStyle)] : []
61 ), 61 ),
62 highlight ? _highlightStyle : _style 62 highlight ? _highlightStyle : _style
63 ), 63 ),
64 onGestureTap: _handleClick 64 onGestureTap: _handleClick
65 ); 65 );
66 } 66 }
67 67
68 void _handleClick(_) { 68 void _handleClick(_) {
69 onChanged(value); 69 onChanged(value);
70 } 70 }
71 } 71 }
OLDNEW
« no previous file with comments | « sky/framework/components/popup_menu_item.dart ('k') | sky/framework/components/scaffold.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698