mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
@@ -202,7 +202,7 @@ class MainController extends GetxController {
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> setNavBarConfig() async {
|
||||
void setNavBarConfig() {
|
||||
List defaultNavTabs = [...defaultNavigationBars];
|
||||
List navBarSort =
|
||||
GStorage.setting.get(SettingBoxKey.navBarSort, defaultValue: [0, 1, 2]);
|
||||
|
||||
@@ -124,7 +124,7 @@ class _MainAppState extends State<MainApp>
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> setIndex(int value) async {
|
||||
void setIndex(int value) {
|
||||
feedBack();
|
||||
|
||||
if (value != _mainController.selectedIndex.value) {
|
||||
@@ -181,7 +181,7 @@ class _MainAppState extends State<MainApp>
|
||||
final bool isPortrait = context.orientation == Orientation.portrait;
|
||||
return PopScope(
|
||||
canPop: false,
|
||||
onPopInvokedWithResult: (bool didPop, Object? result) async {
|
||||
onPopInvokedWithResult: (bool didPop, Object? result) {
|
||||
if (_mainController.selectedIndex.value != 0) {
|
||||
setIndex(0);
|
||||
_mainController.bottomBarStream?.add(true);
|
||||
|
||||
Reference in New Issue
Block a user