From fc321d942f865103d28ba2a792683ae36db28b01 Mon Sep 17 00:00:00 2001 From: lancegin Date: Sun, 23 Sep 2018 11:21:29 +0800 Subject: [PATCH] add: LinearProgressIndicator component --- lib/main.dart | 30 ++++++++++++------------------ 1 file changed, 12 insertions(+), 18 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index 6da579d..1fce859 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -73,7 +73,18 @@ class RandomWordsState extends State { ) ], ), - body: _buildSuggestions(), + body: new Column( + mainAxisSize: MainAxisSize.min, + children: [ + new LinearProgressIndicator( + value: 0.5, + backgroundColor: Colors.orange, + ), + new Expanded( + child: _buildSuggestions(), + ), + ], + ), ); } @@ -104,23 +115,6 @@ class RandomWordsState extends State { Navigator.of(context).push( new MaterialPageRoute( builder: (context) { - final tiles = _saved.map( - (pair) { - return new ListTile( - title: new Text( - pair.asPascalCase, - style: _titleFont, - ), - ); - }, - ); - final divided = ListTile - .divideTiles( - context: context, - tiles: tiles, - ) - .toList(); - return new Scaffold( appBar: new AppBar( title: new Text('Edit'),