Skip to content

Commit

Permalink
remove continue with from social localization
Browse files Browse the repository at this point in the history
  • Loading branch information
dshukertjr committed Jun 19, 2024
1 parent a438e06 commit 51ff6f5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 6 additions & 3 deletions lib/src/components/supa_socials_auth.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ extension on OAuthProvider {
_ => Colors.black,
};

String get labelText => '${name[0].toUpperCase()}${name.substring(1)}';
String get labelText =>
'Continue with ${name[0].toUpperCase()}${name.substring(1)}';
}

enum SocialButtonVariant {
Expand Down Expand Up @@ -383,8 +384,10 @@ class _SupaSocialsAuthState extends State<SupaSocialsAuth> {
icon: iconWidget,
style: authButtonStyle,
onPressed: onAuthButtonPressed,
label: Text(localization.oAuthButtonLabels[socialProvider] ??
'${localization.continueWith} ${socialProvider.labelText}'),
label: Text(
localization.oAuthButtonLabels[socialProvider] ??
socialProvider.labelText,
),
),
);
},
Expand Down
2 changes: 0 additions & 2 deletions lib/src/localizations/supa_socials_auth_localization.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import 'package:supabase_auth_ui/supabase_auth_ui.dart';

class SupaSocialsAuthLocalization {
final String continueWith;
final String successSignInMessage;
final String unexpectedError;

Expand All @@ -25,7 +24,6 @@ class SupaSocialsAuthLocalization {
final Map<OAuthProvider, String> oAuthButtonLabels;

const SupaSocialsAuthLocalization({
this.continueWith = 'Continue with',
this.successSignInMessage = 'Successfully signed in!',
this.unexpectedError = 'An unexpected error occurred',
this.oAuthButtonLabels = const {},
Expand Down

0 comments on commit 51ff6f5

Please sign in to comment.