mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: 首页滑动重载优化,且默认不收起顶栏和底栏
This commit is contained in:
@@ -108,9 +108,9 @@ class SettingController extends GetxController {
|
||||
dynamicBadgeType.value = result;
|
||||
setting.put(SettingBoxKey.dynamicBadgeMode, result.code);
|
||||
MainController mainController = Get.put(MainController());
|
||||
mainController.dynamicBadgeType.value =
|
||||
mainController.dynamicBadgeType =
|
||||
DynamicBadgeMode.values[result.code];
|
||||
if (mainController.dynamicBadgeType.value != DynamicBadgeMode.hidden) {
|
||||
if (mainController.dynamicBadgeType != DynamicBadgeMode.hidden) {
|
||||
mainController.getUnreadDynamic();
|
||||
}
|
||||
SmartDialog.showToast('设置成功');
|
||||
|
||||
@@ -85,14 +85,14 @@ class _StyleSettingState extends State<StyleSetting> {
|
||||
title: '首页顶栏收起',
|
||||
subTitle: '首页列表滑动时,收起顶栏',
|
||||
setKey: SettingBoxKey.hideSearchBar,
|
||||
defaultVal: true,
|
||||
defaultVal: false,
|
||||
needReboot: true,
|
||||
),
|
||||
const SetSwitchItem(
|
||||
title: '首页底栏收起',
|
||||
subTitle: '首页列表滑动时,收起底栏',
|
||||
setKey: SettingBoxKey.hideTabBar,
|
||||
defaultVal: true,
|
||||
defaultVal: false,
|
||||
needReboot: true,
|
||||
),
|
||||
const SetSwitchItem(
|
||||
|
||||
Reference in New Issue
Block a user