Use KeyboardType.phone for the Gallery app's text demo. (#3983)

BUG=https://github.com/flutter/flutter/issues/3970
This commit is contained in:
Matt Perry 2016-05-17 15:36:59 -04:00
parent ee3db6e61a
commit 0628c64b79

View File

@ -82,6 +82,7 @@ class TextFieldDemoState extends State<TextFieldDemo> {
new Input(
hintText: 'Where can we reach you?',
labelText: 'Phone Number',
keyboardType: KeyboardType.phone,
formField: new FormField<String>(
setter: (String val) { person.phoneNumber = val; },
validator: _validatePhoneNumber