mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: nav stream
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -47,7 +47,8 @@ class _DynamicsTabPageState
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
void listener() {
|
void listener() {
|
||||||
if (_mainController.selectedIndex.value == 0) {
|
if (_mainController.navigationBars[0]['id'] != 1 &&
|
||||||
|
_mainController.selectedIndex.value == 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
super.listener();
|
super.listener();
|
||||||
|
|||||||
@@ -45,9 +45,12 @@ class MainController extends GetxController {
|
|||||||
if (GStorage.autoUpdate) {
|
if (GStorage.autoUpdate) {
|
||||||
Utils.checkUpdate();
|
Utils.checkUpdate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setNavBarConfig();
|
||||||
|
|
||||||
hideTabBar =
|
hideTabBar =
|
||||||
GStorage.setting.get(SettingBoxKey.hideTabBar, defaultValue: true);
|
GStorage.setting.get(SettingBoxKey.hideTabBar, defaultValue: true);
|
||||||
if (hideTabBar) {
|
if (navigationBars.length > 1 && hideTabBar) {
|
||||||
bottomBarStream = StreamController<bool>.broadcast();
|
bottomBarStream = StreamController<bool>.broadcast();
|
||||||
}
|
}
|
||||||
isLogin.value = Accounts.main.isLogin;
|
isLogin.value = Accounts.main.isLogin;
|
||||||
@@ -55,8 +58,6 @@ class MainController extends GetxController {
|
|||||||
SettingBoxKey.dynamicBadgeMode,
|
SettingBoxKey.dynamicBadgeMode,
|
||||||
defaultValue: DynamicBadgeMode.number.index)];
|
defaultValue: DynamicBadgeMode.number.index)];
|
||||||
|
|
||||||
setNavBarConfig();
|
|
||||||
|
|
||||||
dynIndex = navigationBars.indexWhere((e) => e['id'] == 1);
|
dynIndex = navigationBars.indexWhere((e) => e['id'] == 1);
|
||||||
if (dynamicBadgeMode != DynamicBadgeMode.hidden) {
|
if (dynamicBadgeMode != DynamicBadgeMode.hidden) {
|
||||||
if (dynIndex != -1) {
|
if (dynIndex != -1) {
|
||||||
|
|||||||
@@ -28,7 +28,8 @@ class _MediaPageState extends CommonPageState<MediaPage, MediaController>
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
void listener() {
|
void listener() {
|
||||||
if (_mainController.selectedIndex.value == 0) {
|
if (_mainController.navigationBars[0]['id'] != 2 &&
|
||||||
|
_mainController.selectedIndex.value == 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
super.listener();
|
super.listener();
|
||||||
|
|||||||
Reference in New Issue
Block a user