Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
Signed-off-by: Cruvie <[email protected]>
  • Loading branch information
Cruvie committed Sep 17, 2023
1 parent c3f55dc commit 611a1d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/docker/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ cd ../..

echo 'build web html'
flutter build web --web-renderer html

#flutter build macos --release
3 changes: 2 additions & 1 deletion lib/page_logics/logic_navigation/logic_navigation.dart
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ class LogicNavigation extends GetxController {
}

changeDestination(Widget page) {
// debugPrint('changeDestination: ${page.toString()}');
int index =
pages.indexWhere((element) => element.toString() == page.toString());
pages.indexWhere((element) => element.runtimeType.toString() == page.runtimeType.toString());
pageController.value.jumpToPage(index);
pageController.refresh();
}
Expand Down

0 comments on commit 611a1d7

Please sign in to comment.