Skip to content

Commit

Permalink
add: LinearProgressIndicator component
Browse files Browse the repository at this point in the history
  • Loading branch information
LanceGin committed Sep 23, 2018
1 parent 3332eb8 commit fc321d9
Showing 1 changed file with 12 additions and 18 deletions.
30 changes: 12 additions & 18 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,18 @@ class RandomWordsState extends State<RandomWords> {
)
],
),
body: _buildSuggestions(),
body: new Column(
mainAxisSize: MainAxisSize.min,
children: <Widget>[
new LinearProgressIndicator(
value: 0.5,
backgroundColor: Colors.orange,
),
new Expanded(
child: _buildSuggestions(),
),
],
),
);
}

Expand Down Expand Up @@ -104,23 +115,6 @@ class RandomWordsState extends State<RandomWords> {
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'),
Expand Down

0 comments on commit fc321d9

Please sign in to comment.