Do not pad the Input/InputContainer icon (#7282)
This commit is contained in:
@@ -87,6 +87,7 @@ class TextFieldDemoState extends State<TextFieldDemo> {
|
||||
validator: _validateName,
|
||||
builder: (FormFieldState<InputValue> field) {
|
||||
return new Input(
|
||||
icon: new Icon(Icons.person),
|
||||
hintText: 'What do people call you?',
|
||||
labelText: 'Name',
|
||||
value: field.value,
|
||||
@@ -96,6 +97,7 @@ class TextFieldDemoState extends State<TextFieldDemo> {
|
||||
},
|
||||
),
|
||||
new InputFormField(
|
||||
icon: new Icon(Icons.phone),
|
||||
hintText: 'Where can we reach you?',
|
||||
labelText: 'Phone Number',
|
||||
keyboardType: TextInputType.phone,
|
||||
|
||||
Reference in New Issue
Block a user