reason

i18n页面修改

...@@ -3,6 +3,7 @@ import 'package:flutter/cupertino.dart'; ...@@ -3,6 +3,7 @@ import 'package:flutter/cupertino.dart';
3 3
4 import 'package:one_poem/extension/int_extension.dart'; 4 import 'package:one_poem/extension/int_extension.dart';
5 import 'package:one_poem/widgets/my_app_bar.dart'; 5 import 'package:one_poem/widgets/my_app_bar.dart';
6 +import 'package:flutter_gen/gen_l10n/one_poem_localizations.dart';
6 7
7 class AccountEditPage extends StatefulWidget { 8 class AccountEditPage extends StatefulWidget {
8 const AccountEditPage({Key? key}) : super(key: key); 9 const AccountEditPage({Key? key}) : super(key: key);
...@@ -60,15 +61,17 @@ class MapScreenState extends State<AccountEditPage> ...@@ -60,15 +61,17 @@ class MapScreenState extends State<AccountEditPage>
60 ], 61 ],
61 ), 62 ),
62 Padding( 63 Padding(
63 - padding: const EdgeInsets.only( 64 + padding: EdgeInsets.only(
64 - top: 90.0, right: 100.0), 65 + top: 90.px,
66 + right: 100.px,
67 + ),
65 child: Row( 68 child: Row(
66 mainAxisAlignment: MainAxisAlignment.center, 69 mainAxisAlignment: MainAxisAlignment.center,
67 - children: const <Widget>[ 70 + children: <Widget>[
68 CircleAvatar( 71 CircleAvatar(
69 backgroundColor: Colors.red, 72 backgroundColor: Colors.red,
70 - radius: 25.0, 73 + radius: 25.px,
71 - child: Icon( 74 + child: const Icon(
72 Icons.camera_alt, 75 Icons.camera_alt,
73 color: Colors.white, 76 color: Colors.white,
74 ), 77 ),
...@@ -83,16 +86,16 @@ class MapScreenState extends State<AccountEditPage> ...@@ -83,16 +86,16 @@ class MapScreenState extends State<AccountEditPage>
83 Container( 86 Container(
84 color: const Color(0xffFFFFFF), 87 color: const Color(0xffFFFFFF),
85 child: Padding( 88 child: Padding(
86 - padding: const EdgeInsets.only(bottom: 5.0), 89 + padding: EdgeInsets.only(bottom: 5.px),
87 child: Column( 90 child: Column(
88 crossAxisAlignment: CrossAxisAlignment.start, 91 crossAxisAlignment: CrossAxisAlignment.start,
89 mainAxisAlignment: MainAxisAlignment.start, 92 mainAxisAlignment: MainAxisAlignment.start,
90 children: <Widget>[ 93 children: <Widget>[
91 Padding( 94 Padding(
92 - padding: const EdgeInsets.only( 95 + padding: EdgeInsets.only(
93 - left: 25.0, 96 + left: 25.px,
94 - right: 25.0, 97 + right: 25.px,
95 - top: 5.0, 98 + top: 5.px,
96 ), 99 ),
97 child: Row( 100 child: Row(
98 mainAxisAlignment: 101 mainAxisAlignment:
...@@ -102,11 +105,11 @@ class MapScreenState extends State<AccountEditPage> ...@@ -102,11 +105,11 @@ class MapScreenState extends State<AccountEditPage>
102 Column( 105 Column(
103 mainAxisAlignment: MainAxisAlignment.start, 106 mainAxisAlignment: MainAxisAlignment.start,
104 mainAxisSize: MainAxisSize.min, 107 mainAxisSize: MainAxisSize.min,
105 - children: const <Widget>[ 108 + children: <Widget>[
106 Text( 109 Text(
107 - '个人信息', 110 + OnePoemLocalizations.of(context).accountEditPageUserInfo,
108 style: TextStyle( 111 style: TextStyle(
109 - fontSize: 18.0, 112 + fontSize: 18.px,
110 fontWeight: FontWeight.bold), 113 fontWeight: FontWeight.bold),
111 ), 114 ),
112 ], 115 ],
...@@ -121,19 +124,19 @@ class MapScreenState extends State<AccountEditPage> ...@@ -121,19 +124,19 @@ class MapScreenState extends State<AccountEditPage>
121 ], 124 ],
122 )), 125 )),
123 Padding( 126 Padding(
124 - padding: const EdgeInsets.only( 127 + padding: EdgeInsets.only(
125 - left: 25.0, right: 25.0, top: 25.0), 128 + left: 25.px, right: 25.px, top: 25.px),
126 child: Row( 129 child: Row(
127 mainAxisSize: MainAxisSize.max, 130 mainAxisSize: MainAxisSize.max,
128 children: <Widget>[ 131 children: <Widget>[
129 Column( 132 Column(
130 mainAxisAlignment: MainAxisAlignment.start, 133 mainAxisAlignment: MainAxisAlignment.start,
131 mainAxisSize: MainAxisSize.min, 134 mainAxisSize: MainAxisSize.min,
132 - children: const <Widget>[ 135 + children: <Widget>[
133 Text( 136 Text(
134 - '姓名', 137 + OnePoemLocalizations.of(context).accountEditPageUserName,
135 style: TextStyle( 138 style: TextStyle(
136 - fontSize: 16.0, 139 + fontSize: 16.px,
137 fontWeight: FontWeight.bold), 140 fontWeight: FontWeight.bold),
138 ), 141 ),
139 ], 142 ],
...@@ -141,15 +144,18 @@ class MapScreenState extends State<AccountEditPage> ...@@ -141,15 +144,18 @@ class MapScreenState extends State<AccountEditPage>
141 ], 144 ],
142 )), 145 )),
143 Padding( 146 Padding(
144 - padding: const EdgeInsets.only( 147 + padding: EdgeInsets.only(
145 - left: 25.0, right: 25.0, top: 2.0), 148 + left: 25.px,
149 + right: 25.px,
150 + top: 2.px,
151 + ),
146 child: Row( 152 child: Row(
147 mainAxisSize: MainAxisSize.max, 153 mainAxisSize: MainAxisSize.max,
148 children: <Widget>[ 154 children: <Widget>[
149 Flexible( 155 Flexible(
150 child: TextField( 156 child: TextField(
151 - decoration: const InputDecoration( 157 + decoration: InputDecoration(
152 - hintText: "请输入您的名称", 158 + hintText: OnePoemLocalizations.of(context).accountEditPageUserNamePlaceholder,
153 ), 159 ),
154 enabled: !_status, 160 enabled: !_status,
155 autofocus: !_status, 161 autofocus: !_status,
...@@ -158,19 +164,22 @@ class MapScreenState extends State<AccountEditPage> ...@@ -158,19 +164,22 @@ class MapScreenState extends State<AccountEditPage>
158 ], 164 ],
159 )), 165 )),
160 Padding( 166 Padding(
161 - padding: const EdgeInsets.only( 167 + padding: EdgeInsets.only(
162 - left: 25.0, right: 25.0, top: 25.0), 168 + left: 25.px,
169 + right: 25.px,
170 + top: 25.px,
171 + ),
163 child: Row( 172 child: Row(
164 mainAxisSize: MainAxisSize.max, 173 mainAxisSize: MainAxisSize.max,
165 children: <Widget>[ 174 children: <Widget>[
166 Column( 175 Column(
167 mainAxisAlignment: MainAxisAlignment.start, 176 mainAxisAlignment: MainAxisAlignment.start,
168 mainAxisSize: MainAxisSize.min, 177 mainAxisSize: MainAxisSize.min,
169 - children: const <Widget>[ 178 + children: <Widget>[
170 Text( 179 Text(
171 - '邮箱', 180 + OnePoemLocalizations.of(context).accountEditPageUserEmail,
172 style: TextStyle( 181 style: TextStyle(
173 - fontSize: 16.0, 182 + fontSize: 16.px,
174 fontWeight: FontWeight.bold), 183 fontWeight: FontWeight.bold),
175 ), 184 ),
176 ], 185 ],
...@@ -178,15 +187,18 @@ class MapScreenState extends State<AccountEditPage> ...@@ -178,15 +187,18 @@ class MapScreenState extends State<AccountEditPage>
178 ], 187 ],
179 )), 188 )),
180 Padding( 189 Padding(
181 - padding: const EdgeInsets.only( 190 + padding: EdgeInsets.only(
182 - left: 25.0, right: 25.0, top: 2.0), 191 + left: 25.px,
192 + right: 25.px,
193 + top: 2.px,
194 + ),
183 child: Row( 195 child: Row(
184 mainAxisSize: MainAxisSize.max, 196 mainAxisSize: MainAxisSize.max,
185 children: <Widget>[ 197 children: <Widget>[
186 Flexible( 198 Flexible(
187 child: TextField( 199 child: TextField(
188 - decoration: const InputDecoration( 200 + decoration: InputDecoration(
189 - hintText: "请输入您的邮箱", 201 + hintText: OnePoemLocalizations.of(context).accountEditPageUserEmailPlaceholder,
190 ), 202 ),
191 enabled: !_status, 203 enabled: !_status,
192 ), 204 ),
...@@ -194,19 +206,22 @@ class MapScreenState extends State<AccountEditPage> ...@@ -194,19 +206,22 @@ class MapScreenState extends State<AccountEditPage>
194 ], 206 ],
195 )), 207 )),
196 Padding( 208 Padding(
197 - padding: const EdgeInsets.only( 209 + padding: EdgeInsets.only(
198 - left: 25.0, right: 25.0, top: 25.0), 210 + left: 25.px,
211 + right: 25.px,
212 + top: 25.px,
213 + ),
199 child: Row( 214 child: Row(
200 mainAxisSize: MainAxisSize.max, 215 mainAxisSize: MainAxisSize.max,
201 children: <Widget>[ 216 children: <Widget>[
202 Column( 217 Column(
203 mainAxisAlignment: MainAxisAlignment.start, 218 mainAxisAlignment: MainAxisAlignment.start,
204 mainAxisSize: MainAxisSize.min, 219 mainAxisSize: MainAxisSize.min,
205 - children: const <Widget>[ 220 + children: <Widget>[
206 Text( 221 Text(
207 - '手机号', 222 + OnePoemLocalizations.of(context).accountEditPageUserPhone,
208 style: TextStyle( 223 style: TextStyle(
209 - fontSize: 16.0, 224 + fontSize: 16.px,
210 fontWeight: FontWeight.bold), 225 fontWeight: FontWeight.bold),
211 ), 226 ),
212 ], 227 ],
...@@ -214,15 +229,18 @@ class MapScreenState extends State<AccountEditPage> ...@@ -214,15 +229,18 @@ class MapScreenState extends State<AccountEditPage>
214 ], 229 ],
215 )), 230 )),
216 Padding( 231 Padding(
217 - padding: const EdgeInsets.only( 232 + padding: EdgeInsets.only(
218 - left: 25.0, right: 25.0, top: 2.0), 233 + left: 25.px,
234 + right: 25.px,
235 + top: 2.px,
236 + ),
219 child: Row( 237 child: Row(
220 mainAxisSize: MainAxisSize.max, 238 mainAxisSize: MainAxisSize.max,
221 children: <Widget>[ 239 children: <Widget>[
222 Flexible( 240 Flexible(
223 child: TextField( 241 child: TextField(
224 - decoration: const InputDecoration( 242 + decoration: InputDecoration(
225 - hintText: "请输入您的手机号", 243 + hintText: OnePoemLocalizations.of(context).accountEditPageUserPhonePlaceholder,
226 ), 244 ),
227 enabled: !_status, 245 enabled: !_status,
228 ), 246 ),
...@@ -230,17 +248,20 @@ class MapScreenState extends State<AccountEditPage> ...@@ -230,17 +248,20 @@ class MapScreenState extends State<AccountEditPage>
230 ], 248 ],
231 )), 249 )),
232 Padding( 250 Padding(
233 - padding: const EdgeInsets.only( 251 + padding: EdgeInsets.only(
234 - left: 25.0, right: 25.0, top: 25.0), 252 + left: 25.px,
253 + right: 25.px,
254 + top: 25.px,
255 + ),
235 child: Row( 256 child: Row(
236 mainAxisSize: MainAxisSize.max, 257 mainAxisSize: MainAxisSize.max,
237 mainAxisAlignment: MainAxisAlignment.start, 258 mainAxisAlignment: MainAxisAlignment.start,
238 - children: const <Widget>[ 259 + children: <Widget>[
239 Expanded( 260 Expanded(
240 child: Text( 261 child: Text(
241 - '性别', 262 + OnePoemLocalizations.of(context).accountEditPageUserGender,
242 style: TextStyle( 263 style: TextStyle(
243 - fontSize: 16.0, 264 + fontSize: 16.px,
244 fontWeight: FontWeight.bold, 265 fontWeight: FontWeight.bold,
245 ), 266 ),
246 ), 267 ),
...@@ -248,9 +269,9 @@ class MapScreenState extends State<AccountEditPage> ...@@ -248,9 +269,9 @@ class MapScreenState extends State<AccountEditPage>
248 ), 269 ),
249 Expanded( 270 Expanded(
250 child: Text( 271 child: Text(
251 - '出生日期', 272 + OnePoemLocalizations.of(context).accountEditPageUserBirthday,
252 style: TextStyle( 273 style: TextStyle(
253 - fontSize: 16.0, 274 + fontSize: 16.px,
254 fontWeight: FontWeight.bold, 275 fontWeight: FontWeight.bold,
255 ), 276 ),
256 ), 277 ),
...@@ -259,19 +280,21 @@ class MapScreenState extends State<AccountEditPage> ...@@ -259,19 +280,21 @@ class MapScreenState extends State<AccountEditPage>
259 ], 280 ],
260 )), 281 )),
261 Padding( 282 Padding(
262 - padding: const EdgeInsets.only( 283 + padding: EdgeInsets.only(
263 - left: 25.0, right: 25.0, top: 2.0), 284 + left: 25.px,
285 + right: 25.px,
286 + top: 2.px,
287 + ),
264 child: Row( 288 child: Row(
265 mainAxisSize: MainAxisSize.max, 289 mainAxisSize: MainAxisSize.max,
266 mainAxisAlignment: MainAxisAlignment.start, 290 mainAxisAlignment: MainAxisAlignment.start,
267 children: <Widget>[ 291 children: <Widget>[
268 Flexible( 292 Flexible(
269 child: Padding( 293 child: Padding(
270 - padding: 294 + padding: EdgeInsets.only(right: 10.px),
271 - const EdgeInsets.only(right: 10.0),
272 child: TextField( 295 child: TextField(
273 - decoration: const InputDecoration( 296 + decoration: InputDecoration(
274 - hintText: "请选择性别"), 297 + hintText: OnePoemLocalizations.of(context).accountEditPageUserGenderPlaceholder,),
275 enabled: !_status, 298 enabled: !_status,
276 ), 299 ),
277 ), 300 ),
...@@ -279,8 +302,8 @@ class MapScreenState extends State<AccountEditPage> ...@@ -279,8 +302,8 @@ class MapScreenState extends State<AccountEditPage>
279 ), 302 ),
280 Flexible( 303 Flexible(
281 child: TextField( 304 child: TextField(
282 - decoration: const InputDecoration( 305 + decoration: InputDecoration(
283 - hintText: "请输入出生日期"), 306 + hintText: OnePoemLocalizations.of(context).accountEditPageUserBirthdayPlaceholder,),
284 enabled: !_status, 307 enabled: !_status,
285 ), 308 ),
286 flex: 2, 309 flex: 2,
...@@ -308,14 +331,18 @@ class MapScreenState extends State<AccountEditPage> ...@@ -308,14 +331,18 @@ class MapScreenState extends State<AccountEditPage>
308 331
309 Widget _getActionButtons() { 332 Widget _getActionButtons() {
310 return Padding( 333 return Padding(
311 - padding: const EdgeInsets.only(left: 25.0, right: 25.0, top: 45.0), 334 + padding: EdgeInsets.only(
335 + left: 25.px,
336 + right: 25.px,
337 + top: 45.px,
338 + ),
312 child: Row( 339 child: Row(
313 mainAxisSize: MainAxisSize.max, 340 mainAxisSize: MainAxisSize.max,
314 mainAxisAlignment: MainAxisAlignment.start, 341 mainAxisAlignment: MainAxisAlignment.start,
315 children: <Widget>[ 342 children: <Widget>[
316 Expanded( 343 Expanded(
317 child: Padding( 344 child: Padding(
318 - padding: const EdgeInsets.only(right: 10.0), 345 + padding: EdgeInsets.only(right: 10.px),
319 child: ElevatedButton( 346 child: ElevatedButton(
320 child: const Text("保存"), 347 child: const Text("保存"),
321 onPressed: () { 348 onPressed: () {
...@@ -330,7 +357,7 @@ class MapScreenState extends State<AccountEditPage> ...@@ -330,7 +357,7 @@ class MapScreenState extends State<AccountEditPage>
330 ), 357 ),
331 Expanded( 358 Expanded(
332 child: Padding( 359 child: Padding(
333 - padding: const EdgeInsets.only(left: 10.0), 360 + padding: EdgeInsets.only(left: 10.px),
334 child: ElevatedButton( 361 child: ElevatedButton(
335 style: ButtonStyle( 362 style: ButtonStyle(
336 backgroundColor: MaterialStateProperty.all(Colors.red)), 363 backgroundColor: MaterialStateProperty.all(Colors.red)),
...@@ -352,13 +379,13 @@ class MapScreenState extends State<AccountEditPage> ...@@ -352,13 +379,13 @@ class MapScreenState extends State<AccountEditPage>
352 379
353 Widget _getEditIcon() { 380 Widget _getEditIcon() {
354 return GestureDetector( 381 return GestureDetector(
355 - child: const CircleAvatar( 382 + child: CircleAvatar(
356 backgroundColor: Colors.red, 383 backgroundColor: Colors.red,
357 - radius: 14.0, 384 + radius: 14.px,
358 child: Icon( 385 child: Icon(
359 Icons.edit, 386 Icons.edit,
360 color: Colors.white, 387 color: Colors.white,
361 - size: 16.0, 388 + size: 16.px,
362 ), 389 ),
363 ), 390 ),
364 onTap: () { 391 onTap: () {
......
...@@ -22,6 +22,28 @@ class MessageLookup extends MessageLookupByLibrary { ...@@ -22,6 +22,28 @@ class MessageLookup extends MessageLookupByLibrary {
22 22
23 final messages = _notInlinedMessages(_notInlinedMessages); 23 final messages = _notInlinedMessages(_notInlinedMessages);
24 static Map<String, Function> _notInlinedMessages(_) => <String, Function>{ 24 static Map<String, Function> _notInlinedMessages(_) => <String, Function>{
25 + "accountEditPageUserBirthday":
26 + MessageLookupByLibrary.simpleMessage("Birthday"),
27 + "accountEditPageUserBirthdayPlaceholder":
28 + MessageLookupByLibrary.simpleMessage("Please input birthday"),
29 + "accountEditPageUserEmail":
30 + MessageLookupByLibrary.simpleMessage("Email"),
31 + "accountEditPageUserEmailPlaceholder":
32 + MessageLookupByLibrary.simpleMessage("Please input Email"),
33 + "accountEditPageUserGender":
34 + MessageLookupByLibrary.simpleMessage("Gender"),
35 + "accountEditPageUserGenderPlaceholder":
36 + MessageLookupByLibrary.simpleMessage("Please choose gender"),
37 + "accountEditPageUserInfo":
38 + MessageLookupByLibrary.simpleMessage("User Info"),
39 + "accountEditPageUserName":
40 + MessageLookupByLibrary.simpleMessage("User Name"),
41 + "accountEditPageUserNamePlaceholder":
42 + MessageLookupByLibrary.simpleMessage("Please input User Name"),
43 + "accountEditPageUserPhone":
44 + MessageLookupByLibrary.simpleMessage("Phone"),
45 + "accountEditPageUserPhonePlaceholder":
46 + MessageLookupByLibrary.simpleMessage("Please input Phone"),
25 "categoryBottomNavigationBarItemTitle": 47 "categoryBottomNavigationBarItemTitle":
26 MessageLookupByLibrary.simpleMessage("category"), 48 MessageLookupByLibrary.simpleMessage("category"),
27 "confirm": MessageLookupByLibrary.simpleMessage("Confirm"), 49 "confirm": MessageLookupByLibrary.simpleMessage("Confirm"),
......
...@@ -22,6 +22,23 @@ class MessageLookup extends MessageLookupByLibrary { ...@@ -22,6 +22,23 @@ class MessageLookup extends MessageLookupByLibrary {
22 22
23 final messages = _notInlinedMessages(_notInlinedMessages); 23 final messages = _notInlinedMessages(_notInlinedMessages);
24 static Map<String, Function> _notInlinedMessages(_) => <String, Function>{ 24 static Map<String, Function> _notInlinedMessages(_) => <String, Function>{
25 + "accountEditPageUserBirthday":
26 + MessageLookupByLibrary.simpleMessage("出生日期"),
27 + "accountEditPageUserBirthdayPlaceholder":
28 + MessageLookupByLibrary.simpleMessage("请输入出生日期"),
29 + "accountEditPageUserEmail": MessageLookupByLibrary.simpleMessage("邮箱"),
30 + "accountEditPageUserEmailPlaceholder":
31 + MessageLookupByLibrary.simpleMessage("请输入您的邮箱"),
32 + "accountEditPageUserGender": MessageLookupByLibrary.simpleMessage("性别"),
33 + "accountEditPageUserGenderPlaceholder":
34 + MessageLookupByLibrary.simpleMessage("请选择性别"),
35 + "accountEditPageUserInfo": MessageLookupByLibrary.simpleMessage("个人信息"),
36 + "accountEditPageUserName": MessageLookupByLibrary.simpleMessage("姓名"),
37 + "accountEditPageUserNamePlaceholder":
38 + MessageLookupByLibrary.simpleMessage("请输入您的名称"),
39 + "accountEditPageUserPhone": MessageLookupByLibrary.simpleMessage("手机号"),
40 + "accountEditPageUserPhonePlaceholder":
41 + MessageLookupByLibrary.simpleMessage("请输入您的手机号"),
25 "categoryBottomNavigationBarItemTitle": 42 "categoryBottomNavigationBarItemTitle":
26 MessageLookupByLibrary.simpleMessage("众妙"), 43 MessageLookupByLibrary.simpleMessage("众妙"),
27 "confirm": MessageLookupByLibrary.simpleMessage("确认"), 44 "confirm": MessageLookupByLibrary.simpleMessage("确认"),
......
...@@ -269,6 +269,116 @@ class S { ...@@ -269,6 +269,116 @@ class S {
269 args: [], 269 args: [],
270 ); 270 );
271 } 271 }
272 +
273 + /// `User Info`
274 + String get accountEditPageUserInfo {
275 + return Intl.message(
276 + 'User Info',
277 + name: 'accountEditPageUserInfo',
278 + desc: '',
279 + args: [],
280 + );
281 + }
282 +
283 + /// `User Name`
284 + String get accountEditPageUserName {
285 + return Intl.message(
286 + 'User Name',
287 + name: 'accountEditPageUserName',
288 + desc: 'User Name',
289 + args: [],
290 + );
291 + }
292 +
293 + /// `Please input User Name`
294 + String get accountEditPageUserNamePlaceholder {
295 + return Intl.message(
296 + 'Please input User Name',
297 + name: 'accountEditPageUserNamePlaceholder',
298 + desc: 'User Name',
299 + args: [],
300 + );
301 + }
302 +
303 + /// `Email`
304 + String get accountEditPageUserEmail {
305 + return Intl.message(
306 + 'Email',
307 + name: 'accountEditPageUserEmail',
308 + desc: 'User Name',
309 + args: [],
310 + );
311 + }
312 +
313 + /// `Please input Email`
314 + String get accountEditPageUserEmailPlaceholder {
315 + return Intl.message(
316 + 'Please input Email',
317 + name: 'accountEditPageUserEmailPlaceholder',
318 + desc: 'Email',
319 + args: [],
320 + );
321 + }
322 +
323 + /// `Phone`
324 + String get accountEditPageUserPhone {
325 + return Intl.message(
326 + 'Phone',
327 + name: 'accountEditPageUserPhone',
328 + desc: 'Phone',
329 + args: [],
330 + );
331 + }
332 +
333 + /// `Please input Phone`
334 + String get accountEditPageUserPhonePlaceholder {
335 + return Intl.message(
336 + 'Please input Phone',
337 + name: 'accountEditPageUserPhonePlaceholder',
338 + desc: 'Phone',
339 + args: [],
340 + );
341 + }
342 +
343 + /// `Gender`
344 + String get accountEditPageUserGender {
345 + return Intl.message(
346 + 'Gender',
347 + name: 'accountEditPageUserGender',
348 + desc: 'Gender',
349 + args: [],
350 + );
351 + }
352 +
353 + /// `Please choose gender`
354 + String get accountEditPageUserGenderPlaceholder {
355 + return Intl.message(
356 + 'Please choose gender',
357 + name: 'accountEditPageUserGenderPlaceholder',
358 + desc: 'Gender',
359 + args: [],
360 + );
361 + }
362 +
363 + /// `Birthday`
364 + String get accountEditPageUserBirthday {
365 + return Intl.message(
366 + 'Birthday',
367 + name: 'accountEditPageUserBirthday',
368 + desc: 'Birthday',
369 + args: [],
370 + );
371 + }
372 +
373 + /// `Please input birthday`
374 + String get accountEditPageUserBirthdayPlaceholder {
375 + return Intl.message(
376 + 'Please input birthday',
377 + name: 'accountEditPageUserBirthdayPlaceholder',
378 + desc: 'Birthday',
379 + args: [],
380 + );
381 + }
272 } 382 }
273 383
274 class AppLocalizationDelegate extends LocalizationsDelegate<S> { 384 class AppLocalizationDelegate extends LocalizationsDelegate<S> {
......
...@@ -130,5 +130,72 @@ ...@@ -130,5 +130,72 @@
130 "description": "One Poem", 130 "description": "One Poem",
131 "type": "text", 131 "type": "text",
132 "placeholders": {} 132 "placeholders": {}
133 + },
134 +
135 + "accountEditPageUserInfo": "User Info",
136 + "@accountEditPageTitle": {
137 + "description": "User Info",
138 + "type": "text",
139 + "placeholders": {}
140 + },
141 + "accountEditPageUserName": "User Name",
142 + "@accountEditPageUserName": {
143 + "description": "User Name",
144 + "type": "text",
145 + "placeholders": {}
146 + },
147 + "accountEditPageUserNamePlaceholder": "Please input User Name",
148 + "@accountEditPageUserNamePlaceholder": {
149 + "description": "User Name",
150 + "type": "text",
151 + "placeholders": {}
152 + },
153 + "accountEditPageUserEmail": "Email",
154 + "@accountEditPageUserEmail": {
155 + "description": "User Name",
156 + "type": "text",
157 + "placeholders": {}
158 + },
159 + "accountEditPageUserEmailPlaceholder": "Please input Email",
160 + "@accountEditPageUserEmailPlaceholder": {
161 + "description": "Email",
162 + "type": "text",
163 + "placeholders": {}
164 + },
165 + "accountEditPageUserPhone": "Phone",
166 + "@accountEditPageUserPhone": {
167 + "description": "Phone",
168 + "type": "text",
169 + "placeholders": {}
170 + },
171 + "accountEditPageUserPhonePlaceholder": "Please input Phone",
172 + "@accountEditPageUserPhonePlaceholder": {
173 + "description": "Phone",
174 + "type": "text",
175 + "placeholders": {}
176 + },
177 + "accountEditPageUserGender": "Gender",
178 + "@accountEditPageUserGender": {
179 + "description": "Gender",
180 + "type": "text",
181 + "placeholders": {}
182 + },
183 + "accountEditPageUserGenderPlaceholder": "Please choose gender",
184 + "@accountEditPageUserGenderPlaceholder": {
185 + "description": "Gender",
186 + "type": "text",
187 + "placeholders": {}
188 + },
189 + "accountEditPageUserBirthday": "Birthday",
190 + "@accountEditPageUserBirthday": {
191 + "description": "Birthday",
192 + "type": "text",
193 + "placeholders": {}
194 + },
195 + "accountEditPageUserBirthdayPlaceholder": "Please input birthday",
196 + "@accountEditPageUserBirthdayPlaceholder": {
197 + "description": "Birthday",
198 + "type": "text",
199 + "placeholders": {}
133 } 200 }
134 } 201 }
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -20,5 +20,17 @@ ...@@ -20,5 +20,17 @@
20 "onePoemBottomNavigationBarItemTitle" : "一言", 20 "onePoemBottomNavigationBarItemTitle" : "一言",
21 "timelineBottomNavigationBarItemTitle" : "临境", 21 "timelineBottomNavigationBarItemTitle" : "临境",
22 "categoryBottomNavigationBarItemTitle" : "众妙", 22 "categoryBottomNavigationBarItemTitle" : "众妙",
23 - "profileBottomNavigationBarItemTitle" : "我在" 23 + "profileBottomNavigationBarItemTitle" : "我在",
24 +
25 + "accountEditPageUserInfo" : "个人信息",
26 + "accountEditPageUserName" : "姓名",
27 + "accountEditPageUserNamePlaceholder" : "请输入您的名称",
28 + "accountEditPageUserEmail" : "邮箱",
29 + "accountEditPageUserEmailPlaceholder" : "请输入您的邮箱",
30 + "accountEditPageUserPhone" : "手机号",
31 + "accountEditPageUserPhonePlaceholder" : "请输入您的手机号",
32 + "accountEditPageUserGender" : "性别",
33 + "accountEditPageUserGenderPlaceholder" : "请选择性别",
34 + "accountEditPageUserBirthday" : "出生日期",
35 + "accountEditPageUserBirthdayPlaceholder" : "请输入出生日期"
24 } 36 }
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -52,7 +52,6 @@ class _LocalePageState extends State<LocalePage> { ...@@ -52,7 +52,6 @@ class _LocalePageState extends State<LocalePage> {
52 final String locale = 52 final String locale =
53 index == 0 ? '' : (index == 1 ? 'zh' : 'en'); 53 index == 0 ? '' : (index == 1 ? 'zh' : 'en');
54 context.read<LocaleProvider>().setLocale(locale); 54 context.read<LocaleProvider>().setLocale(locale);
55 - Toast.show('当前功能仅登录模块有效');
56 setState(() {}); 55 setState(() {});
57 }, 56 },
58 child: Container( 57 child: Container(
......