【发布时间】:2019-11-09 09:25:16
【问题描述】:
我正在尝试构建一个屏幕,我想要一个容器内的行小部件,其中容器具有 boxDecoration 属性。如何做到这一点?
我试图把容器放在一个大小合适的盒子里,它有一个 boxDecoration 属性。现在,我想要一个行小部件,以便我可以将图像和一些文本放在一起。但我不知道这样做。
这是我的代码:
大小框( 宽度:420.0, 高度:110.0,
child :
Container( //here i want a row widget so that i can put one image and some text
padding: EdgeInsets.only(bottom:10,top:30,left:20),
decoration: BoxDecoration(
border: Border.all(color: Color(0xffD4D4D4),width: 2.0)
),
child : Text("External LTE 4G universal modem antennas (2 or 4) (SMA) finger tighten only",textAlign: TextAlign.justify,style: TextStyle(fontSize: 15,fontWeight: FontWeight.normal),
)
),
),
【问题讨论】:
标签: flutter-layout