Commit bb683e03 authored by Hixie's avatar Hixie

Make RaisedButton support being disabled.

R=jackson@google.com

Review URL: https://codereview.chromium.org/1179943005.
parent 86eabcb7
...@@ -24,10 +24,19 @@ class ContainerApp extends App { ...@@ -24,10 +24,19 @@ class ContainerApp extends App {
key: 'b', key: 'b',
decoration: new BoxDecoration(backgroundColor: const Color(0xFFFFFF00)), decoration: new BoxDecoration(backgroundColor: const Color(0xFFFFFF00)),
padding: new EdgeDims.symmetric(horizontal: 50.0, vertical: 75.0), padding: new EdgeDims.symmetric(horizontal: 50.0, vertical: 75.0),
child: new RaisedButton( child: new Flex([
new RaisedButton(
key: 'b1',
child: new Text('PRESS ME'), child: new Text('PRESS ME'),
onPressed: () => print("Hello World") onPressed: () => print("Hello World")
),
new RaisedButton(
key: 'b2',
child: new Text('DISABLED'),
onPressed: () => print("Hello World"),
enabled: false
) )
])
), ),
new FlexExpandingChild( new FlexExpandingChild(
new Container( new Container(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment