remove build errors

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2022-12-16 07:02:06 -06:00
parent efbb99b3c2
commit 41b0a9893d
1 changed files with 1 additions and 9 deletions

View File

@ -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)
);
} }
} }