New switches for hyper and hypo

This commit is contained in:
2024-02-01 11:15:02 +03:00
parent defb82b4f3
commit c846a0c8ca
2 changed files with 50 additions and 7 deletions

View File

@@ -78,6 +78,8 @@ class MyProfileBloc extends Bloc<MyProfileEvent, MyProfileState> {
additionalFormController: currentState.additionalFormController,
sportsFormController: currentState.sportsFormController,
dateFormController: currentState.dateFormController,
hypoFormController: currentState.hypoFormController,
hyperFormController: currentState.hyperFormController,
));
} else {
print(data['userDetails']);
@@ -89,6 +91,8 @@ class MyProfileBloc extends Bloc<MyProfileEvent, MyProfileState> {
userDetails: data['userDetails'],
plans: data['plans'],
token: token,
hypoFormController: data['userDetails']['has_hypo'].toString(),
hyperFormController: data['userDetails']['has_hyper'].toString(),
chestCircumferenceFormController: TextEditingController(
text: data['userDetails']['chest_circumference']?.toString()),
waistCircumferenceFormController: TextEditingController(