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