Merge branch 'release/0.1.8'
-fix(onboarding): Add full name validation to fix looping issue
This commit is contained in:
commit
210f7b13b9
|
|
@ -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) {
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user