From 285c696f14b61e70644c75164ad61b7ab9fcd086 Mon Sep 17 00:00:00 2001 From: Ian Hickson Date: Fri, 1 Apr 2016 21:22:55 -0700 Subject: [PATCH] Column->Block, uppercase BUTTON captions --- .../material_gallery/lib/demo/buttons_demo.dart | 13 ++++++------- .../material_gallery/lib/demo/snack_bar_demo.dart | 2 +- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/examples/material_gallery/lib/demo/buttons_demo.dart b/examples/material_gallery/lib/demo/buttons_demo.dart index 4ae9249d40..e4f103a9ec 100644 --- a/examples/material_gallery/lib/demo/buttons_demo.dart +++ b/examples/material_gallery/lib/demo/buttons_demo.dart @@ -99,7 +99,7 @@ class _ButtonsDemoState extends State { child: new Column( children: [ new RaisedButton( - child: new Text("Launch Demo"), + child: new Text('LAUNCH DEMO'), onPressed: () { Navigator.push(context, new MaterialPageRoute( builder: (BuildContext context) => new SnackBarDemo() @@ -107,7 +107,7 @@ class _ButtonsDemoState extends State { } ), new RaisedButton( - child: new Text("Disabled") + child: new Text('DISABLED') ) ] .map((Widget child) { @@ -129,7 +129,7 @@ class _ButtonsDemoState extends State { child: new Column( children: [ new FlatButton( - child: new Text("Launch Demo"), + child: new Text('LAUNCH DEMO'), onPressed: () { Navigator.push(context, new MaterialPageRoute( builder: (_) => new DialogDemo() @@ -137,7 +137,7 @@ class _ButtonsDemoState extends State { } ), new FlatButton( - child: new Text("Disabled") + child: new Text('DISABLED') ) ] .map((Widget child) { @@ -182,12 +182,11 @@ class _ButtonsDemoState extends State { return new Builder( builder: (BuildContext context) { final TextStyle textStyle = Theme.of(context).textTheme.caption.copyWith(fontSize: 16.0); - return new Column( - crossAxisAlignment: CrossAxisAlignment.stretch, + return new Block( children: [ demo.builder(context), new Padding( - padding: const EdgeInsets.symmetric(horizontal: 32.0), + padding: const EdgeInsets.fromLTRB(32.0, 0.0, 32.0, 24.0), child: new Text(demo.text, style: textStyle) ) ] diff --git a/examples/material_gallery/lib/demo/snack_bar_demo.dart b/examples/material_gallery/lib/demo/snack_bar_demo.dart index c5affd3907..cdb87044d7 100644 --- a/examples/material_gallery/lib/demo/snack_bar_demo.dart +++ b/examples/material_gallery/lib/demo/snack_bar_demo.dart @@ -23,7 +23,7 @@ class SnackBarDemo extends StatelessWidget { Widget buildBody(BuildContext context) { return new Padding( padding: const EdgeInsets.all(24.0), - child: new Column( + child: new Block( children: [ new Text(_text1), new Text(_text2),