fix(onboarding): Add full name validation to fix looping issue

This commit is contained in:
BisratHailu 2026-04-27 17:47:24 +03:00
parent 39ac295a5b
commit e74ab24b6f
3 changed files with 12 additions and 9 deletions

View File

@ -30,6 +30,10 @@ class GoogleAuthService with ListenableServiceMixin {
_googleUser ??= _googleUser ??=
await _signIn.authenticate(scopeHint: ['email', 'profile']); await _signIn.authenticate(scopeHint: ['email', 'profile']);
print('GOOGLE AUTH');
print(_googleUser?.email);
print(_googleUser?.displayName);
print(_googleUser?.authentication.idToken);
}); });
notifyListeners(); notifyListeners();
} catch (e) { } catch (e) {

View File

@ -122,11 +122,7 @@ class FullNameFormScreen extends ViewModelWidget<OnboardingViewModel> {
Widget _buildFullNameValidator(OnboardingViewModel viewModel) => Text( Widget _buildFullNameValidator(OnboardingViewModel viewModel) => Text(
viewModel.fullNameValidationMessage!, viewModel.fullNameValidationMessage!,
style: const TextStyle( style: style12R700,
fontSize: 12,
color: Colors.red,
fontWeight: FontWeight.w700,
),
); );
Widget _buildContinueButtonWrapper(OnboardingViewModel viewModel) => Padding( Widget _buildContinueButtonWrapper(OnboardingViewModel viewModel) => Padding(
@ -140,10 +136,13 @@ class FullNameFormScreen extends ViewModelWidget<OnboardingViewModel> {
text: 'Continue', text: 'Continue',
borderRadius: 12, borderRadius: 12,
foregroundColor: kcWhite, foregroundColor: kcWhite,
onTap: backgroundColor: fullNameController.text.isNotEmpty &&
fullNameController.text.isNotEmpty ? () => _next(viewModel) : null, !viewModel.hasFullNameValidationMessage
backgroundColor: fullNameController.text.isNotEmpty
? kcPrimaryColor ? kcPrimaryColor
: kcPrimaryColor.withOpacity(0.1), : kcPrimaryColor.withOpacity(0.1),
onTap: fullNameController.text.isNotEmpty &&
!viewModel.hasFullNameValidationMessage
? () => _next(viewModel)
: null,
); );
} }

View File

@ -1,5 +1,5 @@
name: yimaru_app name: yimaru_app
version: 0.1.7+9 version: 0.1.8+10
publish_to: 'none' publish_to: 'none'
description: A new Flutter project. description: A new Flutter project.