返回鍵

This commit is contained in:
kuei 2024-09-26 21:36:40 +08:00
parent ed40d6633d
commit 087242dcea

View File

@ -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> {
),
],
),
),
],
),
);
}
}