forked from eatvio/eatvio_app
feat(registration): added email verification, feat(diary): fixed moderation request, feat(oauth): fixed email and phone verification
This commit is contained in:
@@ -63,7 +63,10 @@ class _SecondStepContentState extends State<SecondStepContent> {
|
||||
controller: heightController,
|
||||
textInputType: const TextInputType.numberWithOptions(),
|
||||
onChanged: (val) {
|
||||
context.read<RegistrationCubitV2>().setHeight(int.parse(val));
|
||||
final height = int.tryParse(val);
|
||||
if (height != null) {
|
||||
context.read<RegistrationCubitV2>().setHeight(height);
|
||||
}
|
||||
},
|
||||
),
|
||||
if (!state.isHeightValid) ValidationErrorWidget(error: s.height_error),
|
||||
@@ -83,7 +86,10 @@ class _SecondStepContentState extends State<SecondStepContent> {
|
||||
controller: weightController,
|
||||
textInputType: const TextInputType.numberWithOptions(),
|
||||
onChanged: (val) {
|
||||
context.read<RegistrationCubitV2>().setWeight(int.parse(val));
|
||||
final weight = int.tryParse(val);
|
||||
if (weight != null) {
|
||||
context.read<RegistrationCubitV2>().setWeight(weight);
|
||||
}
|
||||
},
|
||||
),
|
||||
if (!state.isWeightValid) ValidationErrorWidget(error: s.weight_error),
|
||||
|
||||
@@ -76,7 +76,7 @@ class _RegistrationBottomSheetState extends State<RegistrationBottomSheet> {
|
||||
buttonTextStyle: TextStyles.textMSemibold.copyWith(color: appTheme.whiteA700),
|
||||
buttonStyle: ButtonStyle(side: const WidgetStatePropertyAll(BorderSide.none), backgroundColor: WidgetStatePropertyAll(appTheme.blueA400)),
|
||||
onPressed: () async {
|
||||
AppRouter.navigatorKey.currentContext?.go(RouteConstants.feedScreen);
|
||||
AppRouter.navigatorKey.currentContext?.go(RouteConstants.verifyEmailScreen);
|
||||
},
|
||||
),
|
||||
const SizedBox(width: 20),
|
||||
|
||||
Reference in New Issue
Block a user