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