'What can I use to wrap the Form widget?
I want to add a Padding() widget to a Form() widget, but I get multiple sizing errors, even when I try a SizedBox or Expanded.
I want to resize the whole Form proportionally, how do I do this?
FractionallySizedBox(
widthFactor: 0.8,
child: Form(
key: _formKey,
child: Column(
children: [
TextFormField()
]
)
)
)
I initially tried Padding instead of FractionallySizedBox, similar errors.
Solution 1:[1]
try with scrollPadding.EdgeInsets.zero ---> I dont know, this is what you want
body:FractionallySizedBox(
widthFactor:0.8,
child:Form(
key:_formKey,
child:Column(children:[
TextFormField(
scrollPadding:EdgeInsets.zero,
),
]),
),
),
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
