我正在制作一个单人和双人游戏。为了进行选择,我想要使用滑块样式,但是我尝试使用开关方法后,它看起来非常小。如何增加开关的高度和宽度?是否有任何方法可以创建类似于此的外观?
new Center(
child:
new Padding(padding:EdgeInsets.all(50.00),
child:
new Column(
mainAxisSize: MainAxisSize.max,
children: <Widget>[
new Switch(value: _value, onChanged: (bool value1)
{
_value=value1;
},
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
activeThumbImage: new AssetImage("assets/Images/1.png"),
inactiveThumbImage: new AssetImage("assets/Images/1.png"),
)
],
) ,
),
)