Style Upgrade

This commit is contained in:
Konstantin Ullrich 2021-05-23 17:29:44 +02:00
parent 1239620687
commit 7027f91e6e
No known key found for this signature in database
GPG Key ID: E9562A013280F5DB
1 changed files with 5 additions and 2 deletions

View File

@ -78,10 +78,13 @@ class MyForm extends StatefulWidget {
}
class MyFormState extends State<MyForm> {
static final key = new GlobalKey<FormState>();
final textInput = TextEditingController();
@override
Widget build(BuildContext context) {
final key = new GlobalKey<FormState>();
final textInput = TextEditingController();
bool darkModeOn = inDarkMode(context);
Color color = darkModeOn ? Colors.white : Colors.black;