Do not pad the Input/InputContainer icon (#7282)

This commit is contained in:
Hans Muller
2016-12-16 12:10:57 -08:00
committed by GitHub
parent 895aaa9a2e
commit dbf1cfdbf0
3 changed files with 22 additions and 1 deletions

View File

@@ -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,