【Flutter】Container 设置外边距margin
代码格式: Container( margin: EdgeInsets.all(6.0), //'6.0'为外边距宽度,根据调整大小,4边等宽 ) EdgeInsets可选参数: EdgeInsets.fromLTRB(this.left, this.top, this.right, this.bottom...
【Flutter】Container组件添加背景图片
Container属性介绍: Container({ Key? key, this.alignment,//对齐方式 this.padding,//内边距 this.color,//颜色 this.decoration,//背景装饰,背景图片就是在这里设置 this.foregroundDecorat...