Skip to content

Commit d8ef470

Browse files
authored
Upgrade sign_in_with_apple dependency for WASM build support (#93)
* Upgrade `sign_in_with_apple` dependency for WASM build support * Resolve Flutter linting issues * Fix remaining linting error
1 parent d7538f4 commit d8ef470

File tree

7 files changed

+18
-18
lines changed

7 files changed

+18
-18
lines changed

lib/src/components/supa_email_auth.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class SupaEmailAuth extends StatefulWidget {
8585

8686
/// {@macro supa_email_auth}
8787
const SupaEmailAuth({
88-
Key? key,
88+
super.key,
8989
this.redirectTo,
9090
required this.onSignInComplete,
9191
required this.onSignUpComplete,
@@ -94,7 +94,7 @@ class SupaEmailAuth extends StatefulWidget {
9494
this.metadataFields,
9595
this.extraMetadata,
9696
this.localization = const SupaEmailAuthLocalization(),
97-
}) : super(key: key);
97+
});
9898

9999
@override
100100
State<SupaEmailAuth> createState() => _SupaEmailAuthState();

lib/src/components/supa_magic_auth.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ class SupaMagicAuth extends StatefulWidget {
2323
final SupaMagicAuthLocalization localization;
2424

2525
const SupaMagicAuth({
26-
Key? key,
26+
super.key,
2727
this.redirectUrl,
2828
required this.onSuccess,
2929
this.onError,
3030
this.localization = const SupaMagicAuthLocalization(),
31-
}) : super(key: key);
31+
});
3232

3333
@override
3434
State<SupaMagicAuth> createState() => _SupaMagicAuthState();

lib/src/components/supa_phone_auth.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ class SupaPhoneAuth extends StatefulWidget {
1717
final SupaPhoneAuthLocalization localization;
1818

1919
const SupaPhoneAuth({
20-
Key? key,
20+
super.key,
2121
required this.authAction,
2222
required this.onSuccess,
2323
this.onError,
2424
this.localization = const SupaPhoneAuthLocalization(),
25-
}) : super(key: key);
25+
});
2626

2727
@override
2828
State<SupaPhoneAuth> createState() => _SupaPhoneAuthState();

lib/src/components/supa_reset_password.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ class SupaResetPassword extends StatefulWidget {
1818
final SupaResetPasswordLocalization localization;
1919

2020
const SupaResetPassword({
21-
Key? key,
21+
super.key,
2222
this.accessToken,
2323
required this.onSuccess,
2424
this.onError,
2525
this.localization = const SupaResetPasswordLocalization(),
26-
}) : super(key: key);
26+
});
2727

2828
@override
2929
State<SupaResetPassword> createState() => _SupaResetPasswordState();

lib/src/components/supa_socials_auth.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ class SupaSocialsAuth extends StatefulWidget {
125125
final SupaSocialsAuthLocalization localization;
126126

127127
const SupaSocialsAuth({
128-
Key? key,
128+
super.key,
129129
this.nativeGoogleAuthConfig,
130130
this.enableNativeAppleAuth = true,
131131
required this.socialProviders,
@@ -138,7 +138,7 @@ class SupaSocialsAuth extends StatefulWidget {
138138
this.scopes,
139139
this.queryParams,
140140
this.localization = const SupaSocialsAuthLocalization(),
141-
}) : super(key: key);
141+
});
142142

143143
@override
144144
State<SupaSocialsAuth> createState() => _SupaSocialsAuthState();
@@ -360,10 +360,10 @@ class _SupaSocialsAuthState extends State<SupaSocialsAuth> {
360360
}
361361

362362
final authButtonStyle = ButtonStyle(
363-
foregroundColor: MaterialStateProperty.all(foregroundColor),
364-
backgroundColor: MaterialStateProperty.all(backgroundColor),
365-
overlayColor: MaterialStateProperty.all(overlayColor),
366-
iconColor: MaterialStateProperty.all(iconColor),
363+
foregroundColor: WidgetStateProperty.all(foregroundColor),
364+
backgroundColor: WidgetStateProperty.all(backgroundColor),
365+
overlayColor: WidgetStateProperty.all(overlayColor),
366+
iconColor: WidgetStateProperty.all(iconColor),
367367
);
368368

369369
return Padding(

lib/src/components/supa_verify_phone.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ class SupaVerifyPhone extends StatefulWidget {
1515
final SupaVerifyPhoneLocalization localization;
1616

1717
const SupaVerifyPhone({
18-
Key? key,
18+
super.key,
1919
required this.onSuccess,
2020
this.onError,
2121
this.localization = const SupaVerifyPhoneLocalization(),
22-
}) : super(key: key);
22+
});
2323

2424
@override
2525
State<SupaVerifyPhone> createState() => _SupaVerifyPhoneState();

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ dependencies:
1515
email_validator: ^2.0.1
1616
font_awesome_flutter: ^10.6.0
1717
google_sign_in: ^6.2.1
18-
sign_in_with_apple: ^5.0.0
18+
sign_in_with_apple: ^6.1.0
1919
crypto: ^3.0.3
2020

2121
dev_dependencies:
2222
flutter_test:
2323
sdk: flutter
24-
flutter_lints: ^2.0.0
24+
flutter_lints: ^4.0.0
2525

2626
flutter:
2727
assets:

0 commit comments

Comments
 (0)