remove build errors
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
efbb99b3c2
commit
41b0a9893d
|
@ -36,12 +36,9 @@ class RandomWords extends StatefulWidget {
|
||||||
|
|
||||||
class _RandomWordsState extends State<RandomWords> {
|
class _RandomWordsState extends State<RandomWords> {
|
||||||
final _suggestions = <WordPair>[];
|
final _suggestions = <WordPair>[];
|
||||||
final _biggerFont = const TextStyle(fontSize: 24);
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final wordPair = WordPair.random();
|
|
||||||
|
|
||||||
return ListView.builder(
|
return ListView.builder(
|
||||||
padding: const EdgeInsets.all(16.0),
|
padding: const EdgeInsets.all(16.0),
|
||||||
itemBuilder: /*1*/ (context, i) {
|
itemBuilder: /*1*/ (context, i) {
|
||||||
|
@ -53,15 +50,10 @@ class _RandomWordsState extends State<RandomWords> {
|
||||||
}
|
}
|
||||||
return Text(
|
return Text(
|
||||||
_suggestions[index].asPascalCase,
|
_suggestions[index].asPascalCase,
|
||||||
style: TextStyle(fontSize: 36, fontWeight: FontWeight.bold)
|
style: const TextStyle(fontSize: 24, fontWeight: FontWeight.bold)
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
return Text(
|
|
||||||
wordPair.asPascalCase,
|
|
||||||
style: TextStyle(fontSize: 48, fontWeight: FontWeight.bold)
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue