WT 1.1.11+5 bug fixes customer change
This commit is contained in:
@@ -82,7 +82,12 @@ class _CustomerFitnessPageState extends State<CustomerFitnessPage> with Trans {
|
||||
Text(
|
||||
t("Your Fitness State"),
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(color: Colors.orange, fontSize: 42, fontFamily: 'Arial', fontWeight: FontWeight.w900),
|
||||
style: TextStyle(
|
||||
color: Colors.orange,
|
||||
fontSize: 42,
|
||||
fontFamily: 'Arial',
|
||||
fontWeight: FontWeight.w900,
|
||||
),
|
||||
)
|
||||
]),
|
||||
Divider(),
|
||||
|
||||
@@ -68,14 +68,17 @@ class _CustomerGoalPage extends State<CustomerGoalPage> with Trans {
|
||||
child: Column(
|
||||
children: [
|
||||
Divider(),
|
||||
InkWell(
|
||||
child: Text(
|
||||
Wrap(alignment: WrapAlignment.center, children: [
|
||||
Text(
|
||||
AppLocalizations.of(context)!.translate("Set Your Goals"),
|
||||
style:
|
||||
GoogleFonts.archivoBlack(color: Colors.orange, fontSize: 30, fontWeight: FontWeight.w900),
|
||||
style: GoogleFonts.archivoBlack(
|
||||
color: Colors.orange,
|
||||
fontSize: 42,
|
||||
fontWeight: FontWeight.w900,
|
||||
),
|
||||
),
|
||||
highlightColor: Colors.white,
|
||||
),
|
||||
]),
|
||||
Divider(),
|
||||
Stack(alignment: Alignment.bottomLeft, children: [
|
||||
TextButton(
|
||||
style: TextButton.styleFrom(
|
||||
|
||||
@@ -114,19 +114,19 @@ class CustomerModifyPage extends StatelessWidget with Trans {
|
||||
),
|
||||
),
|
||||
initialValue: customerBloc.customerRepository.customer!.email,
|
||||
autovalidateMode: AutovalidateMode.always,
|
||||
autovalidateMode: AutovalidateMode.onUserInteraction,
|
||||
validator: (val) {
|
||||
String? validator = customerBloc.emailValidation(val!);
|
||||
String? validator = customerBloc.emailValidation(val);
|
||||
return validator == null ? null : t(validator);
|
||||
},
|
||||
keyboardType: TextInputType.emailAddress,
|
||||
style: new TextStyle(fontSize: 16, color: Colors.indigo),
|
||||
)
|
||||
onChanged: (value) => {customerBloc.add(CustomerEmailChange(email: value))})
|
||||
: Offstage(),
|
||||
Divider(
|
||||
color: Colors.transparent,
|
||||
),
|
||||
Cache().getLoginType() == LoginType.email
|
||||
/* Cache().getLoginType() == LoginType.email
|
||||
? TextFormField(
|
||||
key: LibraryKeys.loginPasswordField,
|
||||
obscureText: true,
|
||||
@@ -149,13 +149,14 @@ class CustomerModifyPage extends StatelessWidget with Trans {
|
||||
initialValue: customerBloc.customerRepository.customer!.password,
|
||||
autovalidateMode: AutovalidateMode.onUserInteraction,
|
||||
validator: (val) {
|
||||
String? validator = customerBloc.passwordValidation(val!);
|
||||
String? validator = customerBloc.passwordValidation(val);
|
||||
return validator == null ? null : t(validator);
|
||||
},
|
||||
keyboardType: TextInputType.visiblePassword,
|
||||
style: new TextStyle(fontSize: 16, color: Colors.indigo),
|
||||
onChanged: (value) => {customerBloc.add(CustomerPasswordChange(password: value))})
|
||||
)
|
||||
: Offstage(),
|
||||
: Offstage(), */
|
||||
Divider(
|
||||
color: Colors.transparent,
|
||||
),
|
||||
@@ -175,7 +176,8 @@ class CustomerModifyPage extends StatelessWidget with Trans {
|
||||
initialValue: customerBloc.customerRepository.customer!.name,
|
||||
autovalidateMode: AutovalidateMode.onUserInteraction,
|
||||
validator: (val) {
|
||||
return customerBloc.nameValidation(val);
|
||||
String? validator = customerBloc.nameValidation(val);
|
||||
return validator == null ? null : t(validator);
|
||||
},
|
||||
keyboardType: TextInputType.name,
|
||||
style: new TextStyle(fontSize: 16, color: Colors.indigo),
|
||||
@@ -200,7 +202,8 @@ class CustomerModifyPage extends StatelessWidget with Trans {
|
||||
initialValue: customerBloc.customerRepository.customer!.firstname,
|
||||
autovalidateMode: AutovalidateMode.onUserInteraction,
|
||||
validator: (val) {
|
||||
return customerBloc.nameValidation(val);
|
||||
String? validator = customerBloc.nameValidation(val);
|
||||
return validator == null ? null : t(validator);
|
||||
},
|
||||
keyboardType: TextInputType.name,
|
||||
style: new TextStyle(fontSize: 16, color: Colors.indigo),
|
||||
|
||||
Reference in New Issue
Block a user