@@ -125,6 +125,9 @@ class SupaSocialsAuth extends StatefulWidget {
125
125
/// Localization for the form
126
126
final SupaSocialsAuthLocalization localization;
127
127
128
+ /// Custom LaunchMode support
129
+ final LaunchMode authScreenLaunchMode;
130
+
128
131
const SupaSocialsAuth ({
129
132
super .key,
130
133
this .nativeGoogleAuthConfig,
@@ -139,6 +142,7 @@ class SupaSocialsAuth extends StatefulWidget {
139
142
this .scopes,
140
143
this .queryParams,
141
144
this .localization = const SupaSocialsAuthLocalization (),
145
+ this .authScreenLaunchMode = LaunchMode .platformDefault,
142
146
});
143
147
144
148
@override
@@ -265,7 +269,6 @@ class _SupaSocialsAuthState extends State<SupaSocialsAuth> {
265
269
width: 48 ,
266
270
height: 48 ,
267
271
);
268
-
269
272
foregroundColor = Colors .black;
270
273
backgroundColor = Colors .white;
271
274
overlayColor = Colors .white;
@@ -354,6 +357,7 @@ class _SupaSocialsAuthState extends State<SupaSocialsAuth> {
354
357
redirectTo: widget.redirectUrl,
355
358
scopes: widget.scopes? [socialProvider],
356
359
queryParams: widget.queryParams? [socialProvider],
360
+ authScreenLaunchMode: widget.authScreenLaunchMode,
357
361
);
358
362
} on AuthException catch (error) {
359
363
if (widget.onError == null && context.mounted) {
0 commit comments