Skip to content

Commit b21e6ab

Browse files
committed
fix: add 'Continue with' to localisation, make dynamic
1 parent b20b5cd commit b21e6ab

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/src/components/supa_socials_auth.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ extension on OAuthProvider {
5454
_ => Colors.black,
5555
};
5656

57-
String get labelText =>
58-
'Continue with ${name[0].toUpperCase()}${name.substring(1)}';
57+
String get labelText => '${name[0].toUpperCase()}${name.substring(1)}';
5958
}
6059

6160
enum SocialButtonVariant {

lib/src/localizations/supa_socials_auth_localization.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import 'package:supabase_auth_ui/supabase_auth_ui.dart';
22

33
class SupaSocialsAuthLocalization {
4+
final String continueWith;
45
final String updatePassword;
56
final String successSignInMessage;
67
final String unexpectedError;
@@ -25,6 +26,7 @@ class SupaSocialsAuthLocalization {
2526
final Map<OAuthProvider, String> oAuthButtonLabels;
2627

2728
const SupaSocialsAuthLocalization({
29+
this.continueWith = 'Continue with',
2830
this.updatePassword = 'Update Password',
2931
this.successSignInMessage = 'Successfully signed in!',
3032
this.unexpectedError = 'An unexpected error occurred',

0 commit comments

Comments
 (0)