返回鍵

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