Commit 285c696f authored by Ian Hickson's avatar Ian Hickson

Column->Block, uppercase BUTTON captions

parent 665ac49b
...@@ -99,7 +99,7 @@ class _ButtonsDemoState extends State<ButtonsDemo> { ...@@ -99,7 +99,7 @@ class _ButtonsDemoState extends State<ButtonsDemo> {
child: new Column( child: new Column(
children: <Widget>[ children: <Widget>[
new RaisedButton( new RaisedButton(
child: new Text("Launch Demo"), child: new Text('LAUNCH DEMO'),
onPressed: () { onPressed: () {
Navigator.push(context, new MaterialPageRoute<Null>( Navigator.push(context, new MaterialPageRoute<Null>(
builder: (BuildContext context) => new SnackBarDemo() builder: (BuildContext context) => new SnackBarDemo()
...@@ -107,7 +107,7 @@ class _ButtonsDemoState extends State<ButtonsDemo> { ...@@ -107,7 +107,7 @@ class _ButtonsDemoState extends State<ButtonsDemo> {
} }
), ),
new RaisedButton( new RaisedButton(
child: new Text("Disabled") child: new Text('DISABLED')
) )
] ]
.map((Widget child) { .map((Widget child) {
...@@ -129,7 +129,7 @@ class _ButtonsDemoState extends State<ButtonsDemo> { ...@@ -129,7 +129,7 @@ class _ButtonsDemoState extends State<ButtonsDemo> {
child: new Column( child: new Column(
children: <Widget>[ children: <Widget>[
new FlatButton( new FlatButton(
child: new Text("Launch Demo"), child: new Text('LAUNCH DEMO'),
onPressed: () { onPressed: () {
Navigator.push(context, new MaterialPageRoute<Null>( Navigator.push(context, new MaterialPageRoute<Null>(
builder: (_) => new DialogDemo() builder: (_) => new DialogDemo()
...@@ -137,7 +137,7 @@ class _ButtonsDemoState extends State<ButtonsDemo> { ...@@ -137,7 +137,7 @@ class _ButtonsDemoState extends State<ButtonsDemo> {
} }
), ),
new FlatButton( new FlatButton(
child: new Text("Disabled") child: new Text('DISABLED')
) )
] ]
.map((Widget child) { .map((Widget child) {
...@@ -182,12 +182,11 @@ class _ButtonsDemoState extends State<ButtonsDemo> { ...@@ -182,12 +182,11 @@ class _ButtonsDemoState extends State<ButtonsDemo> {
return new Builder( return new Builder(
builder: (BuildContext context) { builder: (BuildContext context) {
final TextStyle textStyle = Theme.of(context).textTheme.caption.copyWith(fontSize: 16.0); final TextStyle textStyle = Theme.of(context).textTheme.caption.copyWith(fontSize: 16.0);
return new Column( return new Block(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: <Widget>[ children: <Widget>[
demo.builder(context), demo.builder(context),
new Padding( 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) child: new Text(demo.text, style: textStyle)
) )
] ]
......
...@@ -23,7 +23,7 @@ class SnackBarDemo extends StatelessWidget { ...@@ -23,7 +23,7 @@ class SnackBarDemo extends StatelessWidget {
Widget buildBody(BuildContext context) { Widget buildBody(BuildContext context) {
return new Padding( return new Padding(
padding: const EdgeInsets.all(24.0), padding: const EdgeInsets.all(24.0),
child: new Column( child: new Block(
children: <Widget>[ children: <Widget>[
new Text(_text1), new Text(_text1),
new Text(_text2), new Text(_text2),
......
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