chore: remove deprecated item

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-16 21:57:16 +08:00
parent 4972e64cad
commit c4e7263ed6

View File

@@ -220,7 +220,7 @@ List<SettingsModel> get styleSettings => [
context: Get.context!, context: Get.context!,
builder: (context) { builder: (context) {
return SlideDialog( return SlideDialog(
title: '小卡最大列宽度默认240dp', title: '列表最大列宽度默认240dp',
value: GStorage.smallCardWidth, value: GStorage.smallCardWidth,
min: 150.0, min: 150.0,
max: 500.0, max: 500.0,
@@ -235,33 +235,7 @@ List<SettingsModel> get styleSettings => [
} }
}, },
leading: const Icon(Icons.calendar_view_week_outlined), leading: const Icon(Icons.calendar_view_week_outlined),
title: '小卡列表宽度dp限制', title: '列表宽度dp限制',
getSubtitle: () =>
'当前:${GStorage.smallCardWidth.toInt()}dp屏幕宽度:${MediaQuery.of(Get.context!).size.width.toPrecision(2)}dp。宽度越小列数越多。',
),
SettingsModel(
settingsType: SettingsType.normal,
onTap: (setState) async {
double? result = await showDialog(
context: Get.context!,
builder: (context) {
return SlideDialog(
title: '中卡最大列宽度默认280dp',
value: GStorage.smallCardWidth,
min: 150.0,
max: 500.0,
divisions: 35,
suffix: 'dp',
);
});
if (result != null) {
await GStorage.setting.put(SettingBoxKey.smallCardWidth, result);
SmartDialog.showToast('重启生效');
setState();
}
},
leading: const Icon(Icons.calendar_view_week_outlined),
title: '中卡列表宽度dp限制',
getSubtitle: () => getSubtitle: () =>
'当前:${GStorage.smallCardWidth.toInt()}dp屏幕宽度:${MediaQuery.of(Get.context!).size.width.toPrecision(2)}dp。宽度越小列数越多。', '当前:${GStorage.smallCardWidth.toInt()}dp屏幕宽度:${MediaQuery.of(Get.context!).size.width.toPrecision(2)}dp。宽度越小列数越多。',
), ),