fix: 修正跳轉不正當滑動返回(ios)
修正使用 Navigator.pushReplacement (73e0f8f0) 未正常處理不正當滑動返回
This commit is contained in:
@@ -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(),
|
||||
));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user