Pipe onsubmit for text form fields (#13687)

This commit is contained in:
xster
2018-01-03 23:57:38 +08:00
committed by GitHub
parent 5e2bc1681a
commit 1eb6a95fcb
4 changed files with 46 additions and 0 deletions

View File

@@ -184,6 +184,7 @@ class TextFormFieldDemoState extends State<TextFormFieldDemo> {
labelText: 'Re-type Password *',
),
obscureText: true,
onFieldSubmitted: (String value) { _handleSubmitted(); },
validator: _validatePassword,
),
),