feat(registration): added email verification, feat(diary): fixed moderation request, feat(oauth): fixed email and phone verification

This commit is contained in:
misha
2025-12-25 16:31:52 +03:00
parent 99659f7ea1
commit 0ead14bca5
18 changed files with 148 additions and 165 deletions

View File

@@ -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),

View File

@@ -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),