improve: 设置页面样式改进
- 下拉选择改为dialog, 参考 Android 系统内部设置关于选项的行为 - 一些列表对齐问题 - 字体设置预览文字居中
This commit is contained in:
@ -67,6 +67,7 @@ class _SetSwitchItemState extends State<SetSwitchItem> {
|
||||
? Text(widget.subTitle!, style: subTitleStyle)
|
||||
: null,
|
||||
trailing: Transform.scale(
|
||||
alignment: Alignment.centerRight, // 缩放Switch的大小后保持右侧对齐, 避免右侧空隙过大
|
||||
scale: 0.8,
|
||||
child: Switch(
|
||||
thumbIcon: MaterialStateProperty.resolveWith<Icon?>(
|
||||
|
||||
Reference in New Issue
Block a user