feat(authentication): remove social sign-in buttons and add TODO for future implementation
feat(billing): update billing module routes to indicate feature not yet implemented feat(coverage): update coverage module routes to indicate feature not yet implemented feat(sign_up_form): set full width for create account button in sign-up form
This commit is contained in:
@@ -33,13 +33,6 @@ class ClientSignInPage extends StatelessWidget {
|
||||
).add(ClientSignInRequested(email: email, password: password));
|
||||
}
|
||||
|
||||
/// Dispatches the social sign in event to the BLoC.
|
||||
void _handleSocialSignIn(BuildContext context, {required String provider}) {
|
||||
BlocProvider.of<ClientAuthBloc>(
|
||||
context,
|
||||
).add(ClientSocialSignInRequested(provider: provider));
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final i18n = t.client_authentication.sign_in_page;
|
||||
@@ -97,21 +90,9 @@ class ClientSignInPage extends StatelessWidget {
|
||||
AuthDivider(text: i18n.or_divider),
|
||||
|
||||
const SizedBox(height: UiConstants.space6),
|
||||
|
||||
// Social Buttons
|
||||
AuthSocialButton(
|
||||
text: i18n.social_apple,
|
||||
icon: UiIcons.apple,
|
||||
onPressed: () =>
|
||||
_handleSocialSignIn(context, provider: 'apple'),
|
||||
),
|
||||
const SizedBox(height: UiConstants.space3),
|
||||
AuthSocialButton(
|
||||
text: i18n.social_google,
|
||||
icon: UiIcons.google,
|
||||
onPressed: () =>
|
||||
_handleSocialSignIn(context, provider: 'google'),
|
||||
),
|
||||
|
||||
/// TODO: FEATURE_NOT_YET_IMPLEMENTED
|
||||
// Social Sign-In Buttons
|
||||
|
||||
const SizedBox(height: UiConstants.space8),
|
||||
|
||||
|
||||
@@ -37,13 +37,6 @@ class ClientSignUpPage extends StatelessWidget {
|
||||
);
|
||||
}
|
||||
|
||||
/// Dispatches the social sign up event.
|
||||
void _handleSocialSignUp(BuildContext context, {required String provider}) {
|
||||
BlocProvider.of<ClientAuthBloc>(
|
||||
context,
|
||||
).add(ClientSocialSignInRequested(provider: provider));
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final i18n = t.client_authentication.sign_up_page;
|
||||
@@ -102,27 +95,13 @@ class ClientSignUpPage extends StatelessWidget {
|
||||
|
||||
const SizedBox(height: UiConstants.space6),
|
||||
|
||||
// Divider
|
||||
// Divider
|
||||
AuthDivider(text: i18n.or_divider),
|
||||
|
||||
const SizedBox(height: UiConstants.space6),
|
||||
|
||||
// Social Buttons
|
||||
// Social Buttons
|
||||
AuthSocialButton(
|
||||
text: i18n.social_apple,
|
||||
icon: UiIcons.apple,
|
||||
onPressed: () =>
|
||||
_handleSocialSignUp(context, provider: 'apple'),
|
||||
),
|
||||
const SizedBox(height: UiConstants.space3),
|
||||
AuthSocialButton(
|
||||
text: i18n.social_google,
|
||||
icon: UiIcons.google,
|
||||
onPressed: () =>
|
||||
_handleSocialSignUp(context, provider: 'google'),
|
||||
),
|
||||
/// TODO: FEATURE_NOT_YET_IMPLEMENTED
|
||||
// Social Sign-In Buttons in register page
|
||||
|
||||
const SizedBox(height: UiConstants.space8),
|
||||
|
||||
|
||||
@@ -120,6 +120,7 @@ class _ClientSignUpFormState extends State<ClientSignUpForm> {
|
||||
UiButton.primary(
|
||||
text: widget.isLoading ? null : i18n.create_account_button,
|
||||
onPressed: widget.isLoading ? null : _handleSubmit,
|
||||
fullWidth: true,
|
||||
child: widget.isLoading
|
||||
? const SizedBox(
|
||||
height: 24,
|
||||
|
||||
Reference in New Issue
Block a user