📅  最后修改于: 2022-03-11 14:57:16.556000             🧑  作者: Mango
ElevatedButton(
onPressed: () {
// Validate will return true if the form is valid, or false if
// the form is invalid.
if(_formKey.currentState.validate()) {
// Process data.
}
},
child: Padding(
padding: const EdgeInsets.symmetric(vertical: 15.0, horizontal: 10),
child: Text('Entrar'),
)
)