返回鍵
This commit is contained in:
parent
ed40d6633d
commit
087242dcea
|
|
@ -322,40 +322,30 @@ class _BasicInfoPageState extends State<BasicInfoPage> {
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
/*appBar: AppBar(
|
||||
title: Text('基本資料'),
|
||||
backgroundColor: Color(0xFFE0D0A9),
|
||||
),*/
|
||||
body: Column(
|
||||
children: [
|
||||
Container(
|
||||
height: 100,
|
||||
color: Color(0xFFF5E3C3),
|
||||
width: double.infinity,
|
||||
padding: EdgeInsets.all(10.0),
|
||||
/* child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween, // 將返回鍵與標題分開
|
||||
children: [
|
||||
IconButton(
|
||||
icon: Icon(Icons.arrow_back, color: Colors.black, size: 24),
|
||||
padding: EdgeInsets.only(left: 0.0, top: 50.0), // 調整左右和底部的間距
|
||||
child:
|
||||
ListTile(
|
||||
contentPadding: EdgeInsets.zero, // 移除 ListTile 內的預設 padding
|
||||
leading: IconButton(
|
||||
icon: Icon(Icons.arrow_back_outlined, size: 28),
|
||||
onPressed: () {
|
||||
Navigator.pop(context, true); // 返回上一頁
|
||||
Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(
|
||||
builder: (context) => PersonalInfo(email: widget.email), // 修正語法錯誤
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
Text(
|
||||
'基本資料',
|
||||
style: TextStyle(fontSize: 24, height: 5),
|
||||
),
|
||||
],
|
||||
),
|
||||
),*/
|
||||
child: Center(
|
||||
child: Text(
|
||||
'基本資料',
|
||||
style: TextStyle(fontSize: 24, height: 5),
|
||||
),
|
||||
),
|
||||
),
|
||||
),title: Text('基本資料', style: TextStyle(fontSize: 28)),
|
||||
onTap: () {
|
||||
},
|
||||
),),
|
||||
Expanded(
|
||||
child: ListView(
|
||||
padding: EdgeInsets.all(16),
|
||||
|
|
@ -494,13 +484,37 @@ class _AccountPageState extends State<AccountPage> {
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: Text('帳號設定'),
|
||||
backgroundColor: Color(0xFFE0D0A9),
|
||||
body: Column(
|
||||
children: [
|
||||
Container(
|
||||
height: 100,
|
||||
color: Color(0xFFF5E3C3),
|
||||
width: double.infinity,
|
||||
padding: EdgeInsets.only(left: 0.0, top: 50.0), // 調整左右和底部的間距
|
||||
child:
|
||||
ListTile(
|
||||
contentPadding: EdgeInsets.zero, // 移除 ListTile 內的預設 padding
|
||||
leading: IconButton(
|
||||
icon: Icon(Icons.arrow_back_outlined, size: 28),
|
||||
onPressed: () {
|
||||
Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(
|
||||
builder: (context) => PersonalInfo(email: widget.email), // 修正語法錯誤
|
||||
),
|
||||
body: ListView(
|
||||
);
|
||||
},
|
||||
),
|
||||
title: Text('帳號設定', style: TextStyle(fontSize: 28)),
|
||||
onTap: () {
|
||||
},
|
||||
),
|
||||
),
|
||||
Expanded(
|
||||
child: ListView(
|
||||
padding: EdgeInsets.all(16),
|
||||
children: [ListTile(
|
||||
children: [
|
||||
ListTile(
|
||||
title: Text('電子信箱'),
|
||||
subtitle: _isEditing
|
||||
? TextField(
|
||||
|
|
@ -525,7 +539,6 @@ class _AccountPageState extends State<AccountPage> {
|
|||
},
|
||||
),
|
||||
),
|
||||
|
||||
)
|
||||
: Text(_passwordController.text),
|
||||
),
|
||||
|
|
@ -548,6 +561,9 @@ class _AccountPageState extends State<AccountPage> {
|
|||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user