diff --git a/lib/src/components/supa_socials_auth.dart b/lib/src/components/supa_socials_auth.dart index 184b32b..cb0f0eb 100644 --- a/lib/src/components/supa_socials_auth.dart +++ b/lib/src/components/supa_socials_auth.dart @@ -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 { @@ -383,8 +384,10 @@ class _SupaSocialsAuthState extends State { icon: iconWidget, style: authButtonStyle, onPressed: onAuthButtonPressed, - label: Text(localization.oAuthButtonLabels[socialProvider] ?? - '${localization.continueWith} ${socialProvider.labelText}'), + label: Text( + localization.oAuthButtonLabels[socialProvider] ?? + socialProvider.labelText, + ), ), ); }, diff --git a/lib/src/localizations/supa_socials_auth_localization.dart b/lib/src/localizations/supa_socials_auth_localization.dart index ad77dfe..27b9dae 100644 --- a/lib/src/localizations/supa_socials_auth_localization.dart +++ b/lib/src/localizations/supa_socials_auth_localization.dart @@ -1,7 +1,6 @@ import 'package:supabase_auth_ui/supabase_auth_ui.dart'; class SupaSocialsAuthLocalization { - final String continueWith; final String successSignInMessage; final String unexpectedError; @@ -25,7 +24,6 @@ class SupaSocialsAuthLocalization { final Map oAuthButtonLabels; const SupaSocialsAuthLocalization({ - this.continueWith = 'Continue with', this.successSignInMessage = 'Successfully signed in!', this.unexpectedError = 'An unexpected error occurred', this.oAuthButtonLabels = const {},