Answers for "example of form in flutter"

3

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'),
          ),
        ],
      ),
    ),
Posted by: Guest on August-30-2021

Code answers related to "Dart"

Browse Popular Code Answers by Language