@@ -5,8 +5,8 @@ import 'package:font_awesome_flutter/font_awesome_flutter.dart';
5
5
import 'package:supabase_auth_ui/src/utils/constants.dart' ;
6
6
import 'package:supabase_flutter/supabase_flutter.dart' ;
7
7
8
- extension SocialProvidersa on OAuthProvider {
9
- IconData get _iconData => switch (this ) {
8
+ extension on OAuthProvider {
9
+ IconData get iconData => switch (this ) {
10
10
OAuthProvider .apple => FontAwesomeIcons .apple,
11
11
OAuthProvider .azure => FontAwesomeIcons .microsoft,
12
12
OAuthProvider .bitbucket => FontAwesomeIcons .bitbucket,
@@ -24,7 +24,7 @@ extension SocialProvidersa on OAuthProvider {
24
24
_ => Icons .close,
25
25
};
26
26
27
- Color get _btnBgColor => switch (this ) {
27
+ Color get btnBgColor => switch (this ) {
28
28
OAuthProvider .apple => Colors .black,
29
29
OAuthProvider .azure => Colors .blueAccent,
30
30
OAuthProvider .bitbucket => Colors .blue,
@@ -139,7 +139,7 @@ class _SupaSocialsAuthState extends State<SupaSocialsAuth> {
139
139
final socialProvider = providers[index];
140
140
141
141
Color ? foregroundColor = coloredBg ? Colors .white : null ;
142
- Color ? backgroundColor = coloredBg ? socialProvider._btnBgColor : null ;
142
+ Color ? backgroundColor = coloredBg ? socialProvider.btnBgColor : null ;
143
143
Color ? overlayColor = coloredBg ? Colors .white10 : null ;
144
144
145
145
Color ? iconColor = coloredBg ? Colors .white : null ;
@@ -148,7 +148,7 @@ class _SupaSocialsAuthState extends State<SupaSocialsAuth> {
148
148
height: 48 ,
149
149
width: 48 ,
150
150
child: Icon (
151
- socialProvider._iconData ,
151
+ socialProvider.iconData ,
152
152
color: iconColor,
153
153
),
154
154
);
0 commit comments