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