|
|
|
@ -165,7 +165,7 @@ class _UserInfoSelectionScreenState extends State<UserInfoSelectionScreen> {
|
|
|
|
title: "Gender".needTranslation,
|
|
|
|
title: "Gender".needTranslation,
|
|
|
|
subTitle: genderText,
|
|
|
|
subTitle: genderText,
|
|
|
|
onTap: () {
|
|
|
|
onTap: () {
|
|
|
|
viewModel.setUserInfoPage(0);
|
|
|
|
viewModel.setUserInfoPage(0, isSinglePageEdit: true);
|
|
|
|
context.navigateWithName(AppRoutes.userInfoFlowManager);
|
|
|
|
context.navigateWithName(AppRoutes.userInfoFlowManager);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
trailingIcon: AppAssets.edit_icon,
|
|
|
|
trailingIcon: AppAssets.edit_icon,
|
|
|
|
@ -178,7 +178,7 @@ class _UserInfoSelectionScreenState extends State<UserInfoSelectionScreen> {
|
|
|
|
subTitle: ageText,
|
|
|
|
subTitle: ageText,
|
|
|
|
iconColor: AppColors.greyTextColor,
|
|
|
|
iconColor: AppColors.greyTextColor,
|
|
|
|
onTap: () {
|
|
|
|
onTap: () {
|
|
|
|
viewModel.setUserInfoPage(1);
|
|
|
|
viewModel.setUserInfoPage(1, isSinglePageEdit: true);
|
|
|
|
context.navigateWithName(AppRoutes.userInfoFlowManager);
|
|
|
|
context.navigateWithName(AppRoutes.userInfoFlowManager);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
trailingIcon: AppAssets.edit_icon,
|
|
|
|
trailingIcon: AppAssets.edit_icon,
|
|
|
|
@ -190,7 +190,7 @@ class _UserInfoSelectionScreenState extends State<UserInfoSelectionScreen> {
|
|
|
|
title: "Height".needTranslation,
|
|
|
|
title: "Height".needTranslation,
|
|
|
|
subTitle: heightText,
|
|
|
|
subTitle: heightText,
|
|
|
|
onTap: () {
|
|
|
|
onTap: () {
|
|
|
|
viewModel.setUserInfoPage(2);
|
|
|
|
viewModel.setUserInfoPage(2, isSinglePageEdit: true);
|
|
|
|
context.navigateWithName(AppRoutes.userInfoFlowManager);
|
|
|
|
context.navigateWithName(AppRoutes.userInfoFlowManager);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
trailingIcon: AppAssets.edit_icon,
|
|
|
|
trailingIcon: AppAssets.edit_icon,
|
|
|
|
@ -202,7 +202,7 @@ class _UserInfoSelectionScreenState extends State<UserInfoSelectionScreen> {
|
|
|
|
title: "Weight".needTranslation,
|
|
|
|
title: "Weight".needTranslation,
|
|
|
|
subTitle: weightText,
|
|
|
|
subTitle: weightText,
|
|
|
|
onTap: () {
|
|
|
|
onTap: () {
|
|
|
|
viewModel.setUserInfoPage(3);
|
|
|
|
viewModel.setUserInfoPage(3, isSinglePageEdit: true);
|
|
|
|
context.navigateWithName(AppRoutes.userInfoFlowManager);
|
|
|
|
context.navigateWithName(AppRoutes.userInfoFlowManager);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
trailingIcon: AppAssets.edit_icon,
|
|
|
|
trailingIcon: AppAssets.edit_icon,
|
|
|
|
@ -240,7 +240,7 @@ class _UserInfoSelectionScreenState extends State<UserInfoSelectionScreen> {
|
|
|
|
icon: AppAssets.edit_icon,
|
|
|
|
icon: AppAssets.edit_icon,
|
|
|
|
iconColor: AppColors.primaryRedColor,
|
|
|
|
iconColor: AppColors.primaryRedColor,
|
|
|
|
onPressed: () {
|
|
|
|
onPressed: () {
|
|
|
|
context.read<SymptomsCheckerViewModel>().setUserInfoPage(0);
|
|
|
|
context.read<SymptomsCheckerViewModel>().setUserInfoPage(0, isSinglePageEdit: false);
|
|
|
|
context.navigateWithName(AppRoutes.userInfoFlowManager);
|
|
|
|
context.navigateWithName(AppRoutes.userInfoFlowManager);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
backgroundColor: AppColors.primaryRedColor.withValues(alpha: 0.11),
|
|
|
|
backgroundColor: AppColors.primaryRedColor.withValues(alpha: 0.11),
|
|
|
|
@ -254,7 +254,7 @@ class _UserInfoSelectionScreenState extends State<UserInfoSelectionScreen> {
|
|
|
|
child: CustomButton(
|
|
|
|
child: CustomButton(
|
|
|
|
text: "Yes, It is".needTranslation,
|
|
|
|
text: "Yes, It is".needTranslation,
|
|
|
|
icon: AppAssets.tickIcon,
|
|
|
|
icon: AppAssets.tickIcon,
|
|
|
|
iconColor: AppColors.whiteColor,
|
|
|
|
iconColor: hasEmptyFields ? AppColors.greyTextColor : AppColors.whiteColor,
|
|
|
|
onPressed: hasEmptyFields
|
|
|
|
onPressed: hasEmptyFields
|
|
|
|
? () {} // Empty function for disabled state
|
|
|
|
? () {} // Empty function for disabled state
|
|
|
|
: () => context.navigateWithName(AppRoutes.organSelectorPage),
|
|
|
|
: () => context.navigateWithName(AppRoutes.organSelectorPage),
|
|
|
|
|