我想无间隙地堆叠多个孩子 但是它们加起来,中间有一个空白 我不知道为什么
这是我的示例代码
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
home: Scaffold(
appBar: AppBar(title: Text('Title')),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[
Container(
width: 120,
height: 50,
color: Color(0xcc000000),
),
Container(
width: 120,
height: 50,
color: Color(0xcc000000),
),
Container(
width: 120,
height: 50,
color: Color(0xcc000000),
),
],
),
),
),
);
}
}
这正在手机上运行屏幕截图 this is screenshot 我不知道为什么孩子之间会有白线