Flutter 在两行之间画一条白线
现在我有两行Flutter 在两行之间画一条白线,flutter,Flutter,现在我有两行和一个蓝色的容器,但是在这两行容器之间我面对一条白线(我不知道颤振是在两行之间放置填充还是边距) 我试着这样做: return Scaffold( appBar: AppBar( backgroundColor: Colors.lightBlue[800], elevation: 0.0, iconTheme: IconThemeData( color: Colors.white, //change yo
和一个蓝色的容器,但是在这两行容器之间我面对一条白线(我不知道颤振是在两行之间放置填充还是边距)
我试着这样做:
return Scaffold(
appBar: AppBar(
backgroundColor: Colors.lightBlue[800],
elevation: 0.0,
iconTheme: IconThemeData(
color: Colors.white, //change your color here
),
),
body: Column(children: <Widget>[
Row(children: [
Container(
color: Colors.lightBlue[800],
height: 170,
width: MediaQuery.of(context).size.width,
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[
Column(
children: <Widget>[
new Container(
width: 120.0,
height: 120.0,
decoration: new BoxDecoration(
shape: BoxShape.circle,
image: new DecorationImage(
fit: BoxFit.fill,
image: new NetworkImage(
"https://i.imgur.com/BoN9kdC.png")))),
Padding(
padding: const EdgeInsets.fromLTRB(0, 5, 0, 0),
child: Text("RENATO",
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: 25,
color: Colors.white)))
],
),
]),
),
]),
Row(children: <Widget>[
Container(
color: Colors.lightBlue[800],
height: 100,
width: MediaQuery.of(context).size.width
)
],)
]),
drawer: Drawer(
child: SafeArea(
child: Padding(
padding: const EdgeInsets.all(18.0),
child: ListView(
children: <Widget>[
ListTile(
title: Text('Item1'),
)
],
),
),
),
),
);
返回脚手架(
appBar:appBar(
背景颜色:颜色。浅蓝色[800],
标高:0.0,
iconTheme:IconThemeData(
颜色:Colors.white,//在此处更改颜色
),
),
正文:列(子项:[
世界其他地区(儿童:[
容器(
颜色:颜色。浅蓝色[800],
身高:170,
宽度:MediaQuery.of(context).size.width,
孩子:排(
mainAxisAlignment:mainAxisAlignment.center,
crossAxisAlignment:crossAxisAlignment.center,
儿童:[
纵队(
儿童:[
新容器(
宽度:120.0,
身高:120.0,
装饰:新盒子装饰(
形状:BoxShape.circle,
图片:新装饰图片(
fit:BoxFit.fill,
图像:新网络图像(
"https://i.imgur.com/BoN9kdC.png")))),
填充物(
padding:const EdgeInsets.fromLTRB(0,5,0,0),
子:文本(“RENATO”,
样式:TextStyle(
fontWeight:fontWeight.bold,
尺寸:25,
颜色:颜色。白色)
],
),
]),
),
]),
世界其他地区(儿童:[
容器(
颜色:颜色。浅蓝色[800],
身高:100,
宽度:MediaQuery.of(上下文).size.width
)
],)
]),
抽屉(
儿童:安全区(
孩子:填充(
填充:常数边集全部(18.0),
子:ListView(
儿童:[
列表砖(
标题:文本(“项目1”),
)
],
),
),
),
),
);
结果是:
如何解决此问题?请尝试从容器中删除边框,或将边框颜色设置为是否在真实设备中进行了测试?是的,但令人惊讶的是,我现在进行了一次颤振运行,现在它正按预期工作。为什么不幸?:)对不起,我在学英语,我的意思是偶尔不用担心,希望现在一切都好。