undo: flutter version 3.22.1 -> 3.19.1

This commit is contained in:
guozhigq
2024-06-12 23:37:29 +08:00
parent b511519323
commit 513c9b94a9
23 changed files with 47 additions and 44 deletions

View File

@ -69,10 +69,10 @@ class _StyleSettingState extends State<StyleSetting> {
alignment: Alignment.centerRight,
scale: 0.8,
child: Switch(
thumbIcon: WidgetStateProperty.resolveWith<Icon?>(
(Set<WidgetState> states) {
thumbIcon: MaterialStateProperty.resolveWith<Icon?>(
(Set<MaterialState> states) {
if (states.isNotEmpty &&
states.first == WidgetState.selected) {
states.first == MaterialState.selected) {
return const Icon(Icons.done);
}
return null; // All other states will use the default thumbIcon.