mirror of
https://github.com/flutter/flutter
synced 2024-10-14 04:02:56 +00:00
Remove default horizontal padding for Input. (#6437)
This partially reverts https://github.com/flutter/flutter/issues/626 , but horizontal padding is not in the spec, so we still match the spec.
This commit is contained in:
parent
23c52fc7a1
commit
fdb76da5c9
|
@ -192,6 +192,8 @@ class _ExpansionPanelsDemoState extends State<ExpasionPanelsDemo> {
|
|||
return new CollapsibleBody(
|
||||
margin: const EdgeInsets.symmetric(horizontal: 16.0),
|
||||
child: new Form(
|
||||
child: new Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16.0),
|
||||
child: new Input(
|
||||
hintText: item.hint,
|
||||
labelText: item.name,
|
||||
|
@ -201,6 +203,7 @@ class _ExpansionPanelsDemoState extends State<ExpasionPanelsDemo> {
|
|||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
onSave: close,
|
||||
onCancel: close
|
||||
);
|
||||
|
|
|
@ -74,7 +74,7 @@ class TextFieldDemoState extends State<TextFieldDemo> {
|
|||
),
|
||||
body: new Form(
|
||||
child: new Block(
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16.0),
|
||||
children: <Widget>[
|
||||
new Input(
|
||||
hintText: 'What do people call you?',
|
||||
|
@ -113,6 +113,7 @@ class TextFieldDemoState extends State<TextFieldDemo> {
|
|||
)
|
||||
)
|
||||
),
|
||||
new SizedBox(width: 16.0),
|
||||
new Flexible(
|
||||
child: new Input(
|
||||
hintText: 'How do you log in?',
|
||||
|
|
|
@ -306,11 +306,8 @@ class _InputState extends State<Input> {
|
|||
child: new GestureDetector(
|
||||
behavior: HitTestBehavior.opaque,
|
||||
onTap: () => _rawInputKey.currentState?.requestKeyboard(),
|
||||
child: new Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16.0),
|
||||
child: child
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue