@@ -24,7 +24,9 @@ extension on OAuthProvider {
24
24
OAuthProvider .gitlab => FontAwesomeIcons .gitlab,
25
25
OAuthProvider .google => FontAwesomeIcons .google,
26
26
OAuthProvider .linkedin => FontAwesomeIcons .linkedin,
27
+ OAuthProvider .linkedinOidc => FontAwesomeIcons .linkedin,
27
28
OAuthProvider .slack => FontAwesomeIcons .slack,
29
+ OAuthProvider .slackOidc => FontAwesomeIcons .slack,
28
30
OAuthProvider .spotify => FontAwesomeIcons .spotify,
29
31
OAuthProvider .twitch => FontAwesomeIcons .twitch,
30
32
OAuthProvider .twitter => FontAwesomeIcons .xTwitter,
@@ -44,8 +46,10 @@ extension on OAuthProvider {
44
46
OAuthProvider .kakao => const Color (0xFFFFE812 ),
45
47
OAuthProvider .keycloak => const Color .fromRGBO (0 , 138 , 170 , 1 ),
46
48
OAuthProvider .linkedin => const Color .fromRGBO (0 , 136 , 209 , 1 ),
49
+ OAuthProvider .linkedinOidc => const Color .fromRGBO (0 , 136 , 209 , 1 ),
47
50
OAuthProvider .notion => const Color .fromRGBO (69 , 75 , 78 , 1 ),
48
51
OAuthProvider .slack => const Color .fromRGBO (74 , 21 , 75 , 1 ),
52
+ OAuthProvider .slackOidc => const Color .fromRGBO (74 , 21 , 75 , 1 ),
49
53
OAuthProvider .spotify => Colors .green,
50
54
OAuthProvider .twitch => Colors .purpleAccent,
51
55
OAuthProvider .twitter => Colors .black,
@@ -54,8 +58,13 @@ extension on OAuthProvider {
54
58
_ => Colors .black,
55
59
};
56
60
57
- String get labelText =>
58
- 'Continue with ${name [0 ].toUpperCase ()}${name .substring (1 )}' ;
61
+ String get capitalizedName {
62
+ String modifiedName = name;
63
+ if (name.endsWith ("Oidc" )) {
64
+ modifiedName = name.substring (0 , name.length - 4 );
65
+ }
66
+ return modifiedName[0 ].toUpperCase () + modifiedName.substring (1 );
67
+ }
59
68
}
60
69
61
70
enum SocialButtonVariant {
0 commit comments