This commit is contained in:
zhutao
2025-09-09 14:07:38 +08:00
parent 71aa4a6790
commit 900dc025d7
24 changed files with 383 additions and 91 deletions

View File

@@ -93,7 +93,7 @@ class _MyPageState extends State<MyPage> {
return CupertinoPageScaffold(
backgroundColor: Colors.white,
navigationBar: CupertinoNavigationBar(
middle: Text("个人资料"),
middle: Text("Profile"),
leading: IconButton(
onPressed: () {
widget.scaffoldKey.currentState?.closeDrawer();
@@ -118,7 +118,7 @@ class _MyPageState extends State<MyPage> {
padding: const EdgeInsets.symmetric(horizontal: 20, vertical: 12),
onPressed: _handLogout,
child: Text(
"退出登录",
"Log Out",
style: TextStyle(color: Colors.white, fontSize: 14),
),
),
@@ -126,7 +126,7 @@ class _MyPageState extends State<MyPage> {
CupertinoButton(
onPressed: _handDelete,
child: const Text(
"删除账号",
"Delete Account",
style: TextStyle(color: CupertinoColors.systemRed, fontSize: 14),
),
),

View File

@@ -132,7 +132,7 @@ class _AvatarNameState extends State<AvatarName> {
style: Theme.of(context).textTheme.titleSmall,
),
child: Text(
"教练如何称呼你?",
"What should we call you?",
style: Theme.of(context).textTheme.labelMedium,
),
),
@@ -150,7 +150,7 @@ class _AvatarNameState extends State<AvatarName> {
style: TextStyle(fontSize: 14),
maxLength: 20,
decoration: InputDecoration(
hintText: "输入你的姓名",
hintText: "Enter your name",
isCollapsed: true,
contentPadding: EdgeInsets.symmetric(vertical: 8, horizontal: 10),
enabledBorder: OutlineInputBorder(

View File

@@ -20,9 +20,9 @@ class _ProfileSectionState extends State<ProfileSection> {
final TextEditingController _inputController = TextEditingController();
final List<String> _tips = [
"教练每次为你制定计划时,都会首先参考这里的信息",
"你分享的背景信息越详细,教练就越能为你量身定制,符合你独特情况的行动步骤",
"你可以在这里为教练提需求,比如“我不吃香菜”",
"Whenever your coach creates a plan for you, theyll start by looking at this information.",
"The more details you share, the better your coach can tailor steps that fit your unique situation.",
"You can also add requests here — for example, I dont eat cilantro.",
];
//防抖
@@ -67,7 +67,7 @@ class _ProfileSectionState extends State<ProfileSection> {
children: [
Container(
margin: EdgeInsets.only(bottom: 20),
child: Text("你的画像"),
child: Text("About You"),
),
Container(
margin: EdgeInsets.only(bottom: 20),
@@ -78,7 +78,7 @@ class _ProfileSectionState extends State<ProfileSection> {
style: TextStyle(fontSize: 14, letterSpacing: 1),
onChanged: _onTextChanged,
decoration: InputDecoration(
hintText: "我是19岁女生,刷碗时用洗碗机,请不要按手洗拆解步骤..",
hintText: "Im 19 and always use a dishwasher. Please dont follow the hand-wash disassembly steps.",
enabledBorder: OutlineInputBorder(
borderSide: BorderSide(color: Colors.grey), // 普通状态
borderRadius: BorderRadius.circular(8),