diff --git a/lib/src/components/supa_socials_auth.dart b/lib/src/components/supa_socials_auth.dart index cb4b89c..4e21f71 100644 --- a/lib/src/components/supa_socials_auth.dart +++ b/lib/src/components/supa_socials_auth.dart @@ -125,6 +125,9 @@ class SupaSocialsAuth extends StatefulWidget { /// Localization for the form final SupaSocialsAuthLocalization localization; + /// Custom LaunchMode support + final LaunchMode authScreenLaunchMode; + const SupaSocialsAuth({ super.key, this.nativeGoogleAuthConfig, @@ -139,6 +142,7 @@ class SupaSocialsAuth extends StatefulWidget { this.scopes, this.queryParams, this.localization = const SupaSocialsAuthLocalization(), + this.authScreenLaunchMode = LaunchMode.platformDefault, }); @override @@ -265,7 +269,6 @@ class _SupaSocialsAuthState extends State { width: 48, height: 48, ); - foregroundColor = Colors.black; backgroundColor = Colors.white; overlayColor = Colors.white; @@ -354,6 +357,7 @@ class _SupaSocialsAuthState extends State { redirectTo: widget.redirectUrl, scopes: widget.scopes?[socialProvider], queryParams: widget.queryParams?[socialProvider], + authScreenLaunchMode: widget.authScreenLaunchMode, ); } on AuthException catch (error) { if (widget.onError == null && context.mounted) {