【发布时间】:2021-11-10 03:30:43
【问题描述】:
如何将 TextFiled 放入 row > 容器中。我不知道为什么 TextField 它超出了容器,而且 textField 的高度也没有正确调整。谁能帮忙...
child: Column(
children: [
Padding(
padding: const EdgeInsets.symmetric(vertical: 30),
child: Container(
decoration: BoxDecoration(
color: Colors.pink,
borderRadius: BorderRadius.circular(50)),
child: Row(
children: [
Icon(Icons.verified_user_outlined),
SizedBox(width: 5),
Container(
width: 200,
height: 30,
color: Colors.orange,
child: TextField(
decoration: InputDecoration(
hintText: 'Enter Your Mobile Number',
errorText: '',
fillColor: Colors.white,
border: OutlineInputBorder(),
),
),
),
],
),
),
),
TextButton(onPressed: () => {}, child: Text("Continue")),
],[![enter image description here][1]][1]
【问题讨论】:
标签: flutter