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

Unified Diff: sky/examples/widgets/container.dart

Issue 1179943005: Make RaisedButton support being disabled. (Closed) Base URL: https://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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sky/sdk/lib/theme2/colors.dart » ('j') | sky/sdk/lib/widgets/raised_button.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/widgets/container.dart
diff --git a/sky/examples/widgets/container.dart b/sky/examples/widgets/container.dart
index 14ba1de13d4dfcb2589bc43a51a83a7e7382a34a..7255ac4aeb9ca308825316db9ac1d58ecebdac90 100644
--- a/sky/examples/widgets/container.dart
+++ b/sky/examples/widgets/container.dart
@@ -24,10 +24,19 @@ class ContainerApp extends App {
key: 'b',
decoration: new BoxDecoration(backgroundColor: const Color(0xFFFFFF00)),
padding: new EdgeDims.symmetric(horizontal: 50.0, vertical: 75.0),
- child: new RaisedButton(
- child: new Text('PRESS ME'),
- onPressed: () => print("Hello World")
- )
+ child: new Flex([
+ new RaisedButton(
+ key: 'b1',
+ child: new Text('PRESS ME'),
+ onPressed: () => print("Hello World")
+ ),
+ new RaisedButton(
+ key: 'b2',
+ child: new Text('DISABLED'),
+ onPressed: () => print("Hello World"),
+ enabled: false
+ )
+ ])
),
new FlexExpandingChild(
new Container(
« no previous file with comments | « no previous file | sky/sdk/lib/theme2/colors.dart » ('j') | sky/sdk/lib/widgets/raised_button.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698