working fontsize

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2022-12-16 06:06:29 -06:00
parent 556c94f979
commit d849c1f6bf
1 changed files with 8 additions and 2 deletions

View File

@ -17,7 +17,7 @@ class MyApp extends StatelessWidget {
title: 'Welcome to Flutter',
home: Scaffold(
appBar: AppBar(
title: const Text('Welcome to Flutter'),
title: const Text('Welcome to Flutter vJWC'),
),
body: const Center(
child: RandomWords(),
@ -35,9 +35,15 @@ class RandomWords extends StatefulWidget {
}
class _RandomWordsState extends State<RandomWords> {
final _suggestions = <WordPair>[];
final _biggerFont = const TextStyle(fontSize: 24);
@override
Widget build(BuildContext context) {
final wordPair = WordPair.random();
return Text(wordPair.asPascalCase);
return Text(
wordPair.asPascalCase,
style: TextStyle(fontSize: 36)
);
}
}