add locale to app using intl
This commit is contained in:
@@ -58,7 +58,7 @@ class _ResetPasswordRequestPageState extends TbPageState<ResetPasswordRequestPag
|
|||||||
),
|
),
|
||||||
SizedBox(height: 61),
|
SizedBox(height: 61),
|
||||||
FormBuilderTextField(
|
FormBuilderTextField(
|
||||||
name: '${S.of(context).email}',
|
name: 'email',
|
||||||
autofocus: true,
|
autofocus: true,
|
||||||
validator: FormBuilderValidators.compose([
|
validator: FormBuilderValidators.compose([
|
||||||
FormBuilderValidators.required(context, errorText: '${S.of(context).emailRequireText}'),
|
FormBuilderValidators.required(context, errorText: '${S.of(context).emailRequireText}'),
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ class _ChangePasswordPageState extends TbContextState<ChangePasswordPage> {
|
|||||||
valueListenable: _showCurrentPasswordNotifier,
|
valueListenable: _showCurrentPasswordNotifier,
|
||||||
builder: (BuildContext context, bool showPassword, child) {
|
builder: (BuildContext context, bool showPassword, child) {
|
||||||
return FormBuilderTextField(
|
return FormBuilderTextField(
|
||||||
name: '${S.of(context).currentPassword}',
|
name: 'currentPassword',
|
||||||
obscureText: !showPassword,
|
obscureText: !showPassword,
|
||||||
autofocus: true,
|
autofocus: true,
|
||||||
validator: FormBuilderValidators.compose([
|
validator: FormBuilderValidators.compose([
|
||||||
@@ -75,7 +75,7 @@ class _ChangePasswordPageState extends TbContextState<ChangePasswordPage> {
|
|||||||
valueListenable: _showNewPasswordNotifier,
|
valueListenable: _showNewPasswordNotifier,
|
||||||
builder: (BuildContext context, bool showPassword, child) {
|
builder: (BuildContext context, bool showPassword, child) {
|
||||||
return FormBuilderTextField(
|
return FormBuilderTextField(
|
||||||
name: '${S.of(context).newPassword}',
|
name: 'newPassword',
|
||||||
obscureText: !showPassword,
|
obscureText: !showPassword,
|
||||||
validator: FormBuilderValidators.compose([
|
validator: FormBuilderValidators.compose([
|
||||||
FormBuilderValidators.required(context, errorText: '${S.of(context).newPasswordRequireText}')
|
FormBuilderValidators.required(context, errorText: '${S.of(context).newPasswordRequireText}')
|
||||||
@@ -98,7 +98,7 @@ class _ChangePasswordPageState extends TbContextState<ChangePasswordPage> {
|
|||||||
valueListenable: _showNewPassword2Notifier,
|
valueListenable: _showNewPassword2Notifier,
|
||||||
builder: (BuildContext context, bool showPassword, child) {
|
builder: (BuildContext context, bool showPassword, child) {
|
||||||
return FormBuilderTextField(
|
return FormBuilderTextField(
|
||||||
name: '${S.of(context).newPassword2}',
|
name: 'newPassword2',
|
||||||
obscureText: !showPassword,
|
obscureText: !showPassword,
|
||||||
validator: FormBuilderValidators.compose([
|
validator: FormBuilderValidators.compose([
|
||||||
FormBuilderValidators.required(context, errorText: '${S.of(context).newPassword2RequireText}')
|
FormBuilderValidators.required(context, errorText: '${S.of(context).newPassword2RequireText}')
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ class _ProfilePageState extends TbPageState<ProfilePage> {
|
|||||||
children: [
|
children: [
|
||||||
SizedBox(height: 16),
|
SizedBox(height: 16),
|
||||||
FormBuilderTextField(
|
FormBuilderTextField(
|
||||||
name: '${S.of(context).email}',
|
name: 'email',
|
||||||
validator: FormBuilderValidators.compose([
|
validator: FormBuilderValidators.compose([
|
||||||
FormBuilderValidators.required(context, errorText: '${S.of(context).emailRequireText}'),
|
FormBuilderValidators.required(context, errorText: '${S.of(context).emailRequireText}'),
|
||||||
FormBuilderValidators.email(context, errorText: '${S.of(context).emailInvalidText}')
|
FormBuilderValidators.email(context, errorText: '${S.of(context).emailInvalidText}')
|
||||||
@@ -93,7 +93,7 @@ class _ProfilePageState extends TbPageState<ProfilePage> {
|
|||||||
),
|
),
|
||||||
SizedBox(height: 24),
|
SizedBox(height: 24),
|
||||||
FormBuilderTextField(
|
FormBuilderTextField(
|
||||||
name: '${S.of(context).firstName}',
|
name: 'firstName',
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
border: OutlineInputBorder(),
|
border: OutlineInputBorder(),
|
||||||
labelText: '${S.of(context).firstNameUpper}'
|
labelText: '${S.of(context).firstNameUpper}'
|
||||||
@@ -101,7 +101,7 @@ class _ProfilePageState extends TbPageState<ProfilePage> {
|
|||||||
),
|
),
|
||||||
SizedBox(height: 24),
|
SizedBox(height: 24),
|
||||||
FormBuilderTextField(
|
FormBuilderTextField(
|
||||||
name: '${S.of(context).lastName}',
|
name: 'lastName',
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
border: OutlineInputBorder(),
|
border: OutlineInputBorder(),
|
||||||
labelText: '${S.of(context).lastNameUpper}'
|
labelText: '${S.of(context).lastNameUpper}'
|
||||||
|
|||||||
Reference in New Issue
Block a user