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

Side by Side Diff: sky/sdk/lib/framework/widgets/checkbox.dart

Issue 1182983002: Rename widgets/wrappers.dart to widgets/basic.dart (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 6 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
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 'dart:sky' as sky; 5 import 'dart:sky' as sky;
6 6
7 import 'package:sky/framework/theme2/colors.dart' as colors; 7 import 'package:sky/framework/theme2/colors.dart' as colors;
8 8
9 import '../animation/animated_value.dart'; 9 import '../animation/animated_value.dart';
10 import '../animation/curves.dart'; 10 import '../animation/curves.dart';
11 import '../rendering/box.dart'; 11 import '../rendering/box.dart';
12 import 'animated_component.dart'; 12 import 'animated_component.dart';
13 import 'wrappers.dart'; 13 import 'basic.dart';
14 14
15 typedef void ValueChanged(value); 15 typedef void ValueChanged(value);
16 16
17 const double _kMidpoint = 0.5; 17 const double _kMidpoint = 0.5;
18 const double _kCheckDuration = 200.0; 18 const double _kCheckDuration = 200.0;
19 const sky.Color _kUncheckedColor = const sky.Color(0x8A000000); 19 const sky.Color _kUncheckedColor = const sky.Color(0x8A000000);
20 // TODO(jackson): This should change colors with the theme 20 // TODO(jackson): This should change colors with the theme
21 sky.Color _kCheckedColor = colors.Purple[500]; 21 sky.Color _kCheckedColor = colors.Purple[500];
22 const double _kEdgeSize = 20.0; 22 const double _kEdgeSize = 20.0;
23 const double _kEdgeRadius = 1.0; 23 const double _kEdgeRadius = 1.0;
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 canvas.drawPath(path, paint); 126 canvas.drawPath(path, paint);
127 } 127 }
128 } 128 }
129 ) 129 )
130 ), 130 ),
131 onGestureTap: _handleClick 131 onGestureTap: _handleClick
132 ); 132 );
133 } 133 }
134 134
135 } 135 }
OLDNEW
« no previous file with comments | « sky/sdk/lib/framework/widgets/button_base.dart ('k') | sky/sdk/lib/framework/widgets/drawer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698