fix: 修正回上一頁按鈕跳轉動畫

This commit is contained in:
JingChiang 2024-10-25 17:40:04 +08:00
parent 3131f611da
commit c7cce038aa

View File

@ -328,12 +328,7 @@ class _BasicInfoPageState extends State<BasicInfoPage> {
leading: IconButton( leading: IconButton(
icon: Icon(Icons.arrow_back_outlined, size: 28), icon: Icon(Icons.arrow_back_outlined, size: 28),
onPressed: () { onPressed: () {
Navigator.push( Navigator.of(context).pop();
context,
MaterialPageRoute(
builder: (context) => PersonalInfo(email: widget.email), //
),
);
}, },
),title: Text('基本資料', style: TextStyle(fontSize: 28)), ),title: Text('基本資料', style: TextStyle(fontSize: 28)),
onTap: () { onTap: () {
@ -490,12 +485,7 @@ class _AccountPageState extends State<AccountPage> {
leading: IconButton( leading: IconButton(
icon: Icon(Icons.arrow_back_outlined, size: 28), icon: Icon(Icons.arrow_back_outlined, size: 28),
onPressed: () { onPressed: () {
Navigator.push( Navigator.of(context).pop();
context,
MaterialPageRoute(
builder: (context) => PersonalInfo(email: widget.email), //
),
);
}, },
), ),
title: Text('帳號設定', style: TextStyle(fontSize: 28)), title: Text('帳號設定', style: TextStyle(fontSize: 28)),