@@ -45,27 +45,31 @@ class _AutofillDemoState extends State<AutofillDemo> {
45
45
autofillHints: [AutofillHints .familyName],
46
46
),
47
47
TextField (
48
+ keyboardType: TextInputType .emailAddress,
48
49
decoration: InputDecoration (
49
50
50
51
labelText: 'Email' ,
51
52
),
52
53
autofillHints: [AutofillHints .email],
53
54
),
54
55
TextField (
56
+ keyboardType: TextInputType .phone,
55
57
decoration: InputDecoration (
56
58
hintText: '(123) 456-7890' ,
57
59
labelText: 'Telephone' ,
58
60
),
59
61
autofillHints: < String > [AutofillHints .telephoneNumber],
60
62
),
61
63
TextField (
64
+ keyboardType: TextInputType .streetAddress,
62
65
decoration: InputDecoration (
63
66
hintText: '123 4th Ave' ,
64
67
labelText: 'Street Address' ,
65
68
),
66
69
autofillHints: < String > [AutofillHints .streetAddressLine1],
67
70
),
68
71
TextField (
72
+ keyboardType: TextInputType .number,
69
73
decoration: InputDecoration (
70
74
hintText: '12345' ,
71
75
labelText: 'Postal Code' ,
@@ -80,6 +84,7 @@ class _AutofillDemoState extends State<AutofillDemo> {
80
84
autofillHints: < String > [AutofillHints .countryName],
81
85
),
82
86
TextField (
87
+ keyboardType: TextInputType .number,
83
88
decoration: InputDecoration (
84
89
hintText: '1' ,
85
90
labelText: 'Country Code' ,
0 commit comments