修复登录页跳转红屏

hmxc
张萌 4 years ago
parent 8058746eaa
commit 1a5dff9efd

@ -249,14 +249,15 @@ class _SettingPageState extends State<SettingPage> {
), ),
), ),
onPressed: () { onPressed: () {
Navigator.popUntil(context, (route) { // Navigator.popUntil(context, (route) {
return !Navigator.canPop(context); // return !Navigator.canPop(context);
}); // });
Navigator.pushReplacement( // Navigator.pushReplacement(
context, // context,
CupertinoPageRoute( // CupertinoPageRoute(
builder: (context) => SignInPage(), // builder: (context) => SignInPage(),
)); // ));
ARoute.push(context, SignInPage());
}, },
), ),
], ],

Loading…
Cancel
Save