颜色:可以通过 BorderSide 的color 属性来设置边框颜色。 宽度:可以通过 BorderSide 的width 属性来设置边框宽度。 形状:可以通过 shape 属性来设置边框的形状,如圆角矩形、圆形等。 其他属性:还可以设置边框的透明度、阴影等其他属性,以满足不同的设计需求。5...
Flutter 实现百分比布局 OutlinedButton 与MaterialButton设置圆角,child:Padding(padding:constEdgeInsets.all(20.0),child:Row(children:[Expanded(flex:2,child:OutlinedButto
all(EdgeInsets.all(10)), ///设置按钮圆角 shape: MaterialStateProperty.all(RoundedRectangleBorder( borderRadius: BorderRadius.circular(5))), ///设置按钮边框颜色和宽度 side: MaterialStateProperty.all( BorderSide(color: ColorStyle.color_4A6081, width: 1)), ), ...
child: OutlinedButton( onPressed: () {}, child: Text( "确认注销", style: TextStyle(color: Colors.grey), ), style: OutlinedButton.styleFrom( shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(18.0), ), side: BorderSide(width: 1, color: Colors.grey), ), ), ), SizedBox(...