SizedBox( width: 50, height: 30, child: FittedBox( fit: BoxFit.fill, child: Switch( onChanged: (bool value) { }, ), ), )
flutter 修改 Switch 组件大小
3 min read
SizedBox( width: 50, height: 30, child: FittedBox( fit: BoxFit.fill, child: Switch( onChanged: (bool value) { }, ), ), )