From 41b0a9893d2a04847372abc230f87052f2f7b45e Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 16 Dec 2022 07:02:06 -0600 Subject: [PATCH] remove build errors Signed-off-by: Jeff Carr --- lib/main.dart | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index 98d61d3..ad3e2da 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -36,12 +36,9 @@ class RandomWords extends StatefulWidget { class _RandomWordsState extends State { final _suggestions = []; - final _biggerFont = const TextStyle(fontSize: 24); @override Widget build(BuildContext context) { - final wordPair = WordPair.random(); - return ListView.builder( padding: const EdgeInsets.all(16.0), itemBuilder: /*1*/ (context, i) { @@ -53,15 +50,10 @@ class _RandomWordsState extends State { } return Text( _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) - ); } }