fix: 修正跳轉不正當滑動返回(ios)

修正使用 Navigator.pushReplacement (73e0f8f0) 未正常處理不正當滑動返回
This commit is contained in:
JingChiang
2024-09-03 00:42:44 +08:00
parent 13f218f089
commit 939d8ddef0
3 changed files with 25 additions and 3 deletions

View File

@@ -3,6 +3,7 @@ import 'package:flutter/rendering.dart';
import 'package:persistent_bottom_nav_bar_v2/persistent_bottom_nav_bar_v2.dart';
import 'package:shared_preferences/shared_preferences.dart';
import 'package:topic/BottomNavBar.dart';
import 'package:topic/NoSwipeBackRoute.dart';
import 'package:topic/main.dart';
import 'package:topic/HomePage.dart';
import 'package:topic/HistoricalRecord.dart';
@@ -119,7 +120,7 @@ class _PersonalInfoState extends State<PersonalInfo> {
// replace screen with LoginPage and without navbar
pushReplacementWithoutNavBar(
context,
MaterialPageRoute(
NoSwipeBackRoute(
builder: (context) => LoginPage(),
));
}