我想删除图标和文本之间的空间。如何删除行中孩子之间的空间?////////// //////////////////////////////////////////////////// //////////////////////////////////////
Widget topSection() {
return Row(
mainAxisAlignment: MainAxisAlignment.end,
children: [
Padding(
padding: EdgeInsets.only(left: 20.0, top: 180),
child: MaterialButton(
onPressed: () {},
color: Colors.black,
textColor: Colors.white,
child: Icon(
Icons.done,
size: 24,
),
shape: CircleBorder(),
)),
Expanded(
child: Padding(
padding: EdgeInsets.only(top: 180),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Padding(
padding: EdgeInsets.only(left: 4),
child: Text("Wellness Coaching",
style: TextStyle(
fontSize: 18,
fontFamily: "LatoR",
fontWeight: FontWeight.w900)),
),
Padding(
padding: EdgeInsets.only(left: 4),
child: Text("Connect to your data",
style: TextStyle(fontSize: 18, fontFamily: "LatoR")),
)
],
),
)),
],
);
}
答案 0 :(得分:0)
mainAxisAlignment: MainAxisAlignment.end,
尝试删除此行。