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

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

Issue 1000863002: Fix errors in Sky detected by Dart analyzer (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: One more 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 | « sky/framework/components/material.dart ('k') | 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
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 'material.dart'; 7 import 'material.dart';
8 8
9 typedef void ValueChanged(value); 9 typedef void ValueChanged(value);
10 10
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 this.onChanged, 50 this.onChanged,
51 this.value, 51 this.value,
52 this.groupValue 52 this.groupValue
53 }) : super(key: key) { 53 }) : super(key: key) {
54 events.listen('click', _handleClick); 54 events.listen('click', _handleClick);
55 } 55 }
56 56
57 Node build() { 57 Node build() {
58 return new Material( 58 return new Material(
59 styles: [highlight ? _highlightStyle : _style], 59 styles: [highlight ? _highlightStyle : _style],
60 children: value == groupValue ? [new Container( style : _dotStyle )] : [] 60 children: value == groupValue ? [new Container(styles: [_dotStyle] )] : []
61 ) 61 );
62 } 62 }
63 63
64 void _handleClick(_) { 64 void _handleClick(_) {
65 onChanged(value); 65 onChanged(value);
66 } 66 }
67 } 67 }
OLDNEW
« no previous file with comments | « sky/framework/components/material.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698