From 4aac34019c3df0ef6e0e0193045125200bdfab37 Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Wed, 27 Jan 2016 10:59:24 -0800 Subject: [PATCH] examples/widgets/container.dart does not display the buttons Add a missing Material. Fixes #1402 --- examples/widgets/container.dart | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/examples/widgets/container.dart b/examples/widgets/container.dart index dd9f6fccd0..b13cd5187a 100644 --- a/examples/widgets/container.dart +++ b/examples/widgets/container.dart @@ -18,19 +18,21 @@ class ContainerApp extends StatelessComponent { height: 300.0 ) ), - new Container( - decoration: new BoxDecoration(backgroundColor: const Color(0xFFFFFF00)), - padding: new EdgeDims.symmetric(horizontal: 50.0, vertical: 75.0), - child: new Row( - children: [ - new RaisedButton( - child: new Text('PRESS ME'), - onPressed: () => print("Hello World") - ), - new RaisedButton( - child: new Text('DISABLED') - ) - ] + new Material( + color: const Color(0xFFFFFF00), + child: new Container( + padding: new EdgeDims.symmetric(horizontal: 50.0, vertical: 75.0), + child: new Row( + children: [ + new RaisedButton( + child: new Text('PRESS ME'), + onPressed: () => print("Hello World") + ), + new RaisedButton( + child: new Text('DISABLED') + ) + ] + ) ) ), new Flexible(