Showing
7 changed files
with
229 additions
and
2 deletions
This diff is collapsed. Click to expand it.
... | @@ -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( | ... | ... |
-
Please register or login to post a comment