flutter form
final GlobalKey<FormState> _formKey = GlobalKey<FormState>(); Form( key: _formKey, child: Column( crossAxisAlignment: CrossAxisAlignment.center, children: <Widget>[ TextFormField( decoration: const InputDecoration( hintText: 'Enter your email', ), ), ElevatedButton( onPressed: () { }, child: const Text('Submit'), ), ], ), ),