From c4e7263ed65d036a918a7f77d7f88ddaa894b1a4 Mon Sep 17 00:00:00 2001 From: bggRGjQaUbCoE Date: Wed, 16 Apr 2025 21:57:16 +0800 Subject: [PATCH] chore: remove deprecated item Signed-off-by: bggRGjQaUbCoE --- lib/pages/setting/widgets/model.dart | 30 ++-------------------------- 1 file changed, 2 insertions(+), 28 deletions(-) diff --git a/lib/pages/setting/widgets/model.dart b/lib/pages/setting/widgets/model.dart index 04e1d602..b21e6e21 100644 --- a/lib/pages/setting/widgets/model.dart +++ b/lib/pages/setting/widgets/model.dart @@ -220,7 +220,7 @@ List get styleSettings => [ context: Get.context!, builder: (context) { return SlideDialog( - title: '小卡最大列宽度(默认240dp)', + title: '列表最大列宽度(默认240dp)', value: GStorage.smallCardWidth, min: 150.0, max: 500.0, @@ -235,33 +235,7 @@ List get styleSettings => [ } }, leading: const Icon(Icons.calendar_view_week_outlined), - 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)限制', + title: '列表宽度(dp)限制', getSubtitle: () => '当前:${GStorage.smallCardWidth.toInt()}dp,屏幕宽度:${MediaQuery.of(Get.context!).size.width.toPrecision(2)}dp。宽度越小列数越多。', ),