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

Unified Diff: sky/framework/components/checkbox.dart

Issue 1128173007: [Effen] remove some redundant styles (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/framework/components/button.dart ('k') | sky/framework/components/floating_action_button.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/framework/components/checkbox.dart
diff --git a/sky/framework/components/checkbox.dart b/sky/framework/components/checkbox.dart
index 4ba3da3a04c6e0ec6d83c8d95d133fc67ce7daad..1924f5cd6b94b2ddb89b703dcc4cd1cf384c0088 100644
--- a/sky/framework/components/checkbox.dart
+++ b/sky/framework/components/checkbox.dart
@@ -3,6 +3,7 @@
// found in the LICENSE file.
import '../fn.dart';
+import '../layout.dart';
import 'button_base.dart';
import 'dart:sky' as sky;
@@ -11,8 +12,6 @@ typedef void ValueChanged(value);
class Checkbox extends ButtonBase {
static final Style _style = new Style('''
transform: translateX(0);
- display: flex;
- flex-direction: row;
justify-content: center;
align-items: center;
-webkit-user-select: none;
@@ -68,8 +67,9 @@ class Checkbox extends ButtonBase {
UINode buildContent() {
return new EventListenerNode(
- new Container(
+ new FlexContainer(
style: _style,
+ direction: FlexDirection.Row,
children: [
new Container(
style: highlight ? _containerHighlightStyle : _containerStyle,
« no previous file with comments | « sky/framework/components/button.dart ('k') | sky/framework/components/floating_action_button.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698