From d8ef470b418a9f5c2a5a52314330a0b3071b62c4 Mon Sep 17 00:00:00 2001 From: Moritz Gehlhaar Date: Sat, 1 Jun 2024 09:57:31 +0200 Subject: [PATCH] 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 --- lib/src/components/supa_email_auth.dart | 4 ++-- lib/src/components/supa_magic_auth.dart | 4 ++-- lib/src/components/supa_phone_auth.dart | 4 ++-- lib/src/components/supa_reset_password.dart | 4 ++-- lib/src/components/supa_socials_auth.dart | 12 ++++++------ lib/src/components/supa_verify_phone.dart | 4 ++-- pubspec.yaml | 4 ++-- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/lib/src/components/supa_email_auth.dart b/lib/src/components/supa_email_auth.dart index 1a5db8c..80507fc 100644 --- a/lib/src/components/supa_email_auth.dart +++ b/lib/src/components/supa_email_auth.dart @@ -85,7 +85,7 @@ class SupaEmailAuth extends StatefulWidget { /// {@macro supa_email_auth} const SupaEmailAuth({ - Key? key, + super.key, this.redirectTo, required this.onSignInComplete, required this.onSignUpComplete, @@ -94,7 +94,7 @@ class SupaEmailAuth extends StatefulWidget { this.metadataFields, this.extraMetadata, this.localization = const SupaEmailAuthLocalization(), - }) : super(key: key); + }); @override State createState() => _SupaEmailAuthState(); diff --git a/lib/src/components/supa_magic_auth.dart b/lib/src/components/supa_magic_auth.dart index 5b1c43a..71f366d 100644 --- a/lib/src/components/supa_magic_auth.dart +++ b/lib/src/components/supa_magic_auth.dart @@ -23,12 +23,12 @@ class SupaMagicAuth extends StatefulWidget { final SupaMagicAuthLocalization localization; const SupaMagicAuth({ - Key? key, + super.key, this.redirectUrl, required this.onSuccess, this.onError, this.localization = const SupaMagicAuthLocalization(), - }) : super(key: key); + }); @override State createState() => _SupaMagicAuthState(); diff --git a/lib/src/components/supa_phone_auth.dart b/lib/src/components/supa_phone_auth.dart index 9e733a6..5d0a3f2 100644 --- a/lib/src/components/supa_phone_auth.dart +++ b/lib/src/components/supa_phone_auth.dart @@ -17,12 +17,12 @@ class SupaPhoneAuth extends StatefulWidget { final SupaPhoneAuthLocalization localization; const SupaPhoneAuth({ - Key? key, + super.key, required this.authAction, required this.onSuccess, this.onError, this.localization = const SupaPhoneAuthLocalization(), - }) : super(key: key); + }); @override State createState() => _SupaPhoneAuthState(); diff --git a/lib/src/components/supa_reset_password.dart b/lib/src/components/supa_reset_password.dart index ab9f695..7aa0dd1 100644 --- a/lib/src/components/supa_reset_password.dart +++ b/lib/src/components/supa_reset_password.dart @@ -18,12 +18,12 @@ class SupaResetPassword extends StatefulWidget { final SupaResetPasswordLocalization localization; const SupaResetPassword({ - Key? key, + super.key, this.accessToken, required this.onSuccess, this.onError, this.localization = const SupaResetPasswordLocalization(), - }) : super(key: key); + }); @override State createState() => _SupaResetPasswordState(); diff --git a/lib/src/components/supa_socials_auth.dart b/lib/src/components/supa_socials_auth.dart index 1253c8b..26e8605 100644 --- a/lib/src/components/supa_socials_auth.dart +++ b/lib/src/components/supa_socials_auth.dart @@ -125,7 +125,7 @@ class SupaSocialsAuth extends StatefulWidget { final SupaSocialsAuthLocalization localization; const SupaSocialsAuth({ - Key? key, + super.key, this.nativeGoogleAuthConfig, this.enableNativeAppleAuth = true, required this.socialProviders, @@ -138,7 +138,7 @@ class SupaSocialsAuth extends StatefulWidget { this.scopes, this.queryParams, this.localization = const SupaSocialsAuthLocalization(), - }) : super(key: key); + }); @override State createState() => _SupaSocialsAuthState(); @@ -360,10 +360,10 @@ class _SupaSocialsAuthState extends State { } final authButtonStyle = ButtonStyle( - foregroundColor: MaterialStateProperty.all(foregroundColor), - backgroundColor: MaterialStateProperty.all(backgroundColor), - overlayColor: MaterialStateProperty.all(overlayColor), - iconColor: MaterialStateProperty.all(iconColor), + foregroundColor: WidgetStateProperty.all(foregroundColor), + backgroundColor: WidgetStateProperty.all(backgroundColor), + overlayColor: WidgetStateProperty.all(overlayColor), + iconColor: WidgetStateProperty.all(iconColor), ); return Padding( diff --git a/lib/src/components/supa_verify_phone.dart b/lib/src/components/supa_verify_phone.dart index 0e18920..83b68df 100644 --- a/lib/src/components/supa_verify_phone.dart +++ b/lib/src/components/supa_verify_phone.dart @@ -15,11 +15,11 @@ class SupaVerifyPhone extends StatefulWidget { final SupaVerifyPhoneLocalization localization; const SupaVerifyPhone({ - Key? key, + super.key, required this.onSuccess, this.onError, this.localization = const SupaVerifyPhoneLocalization(), - }) : super(key: key); + }); @override State createState() => _SupaVerifyPhoneState(); diff --git a/pubspec.yaml b/pubspec.yaml index dd74aef..0bf5aad 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -15,13 +15,13 @@ dependencies: email_validator: ^2.0.1 font_awesome_flutter: ^10.6.0 google_sign_in: ^6.2.1 - sign_in_with_apple: ^5.0.0 + sign_in_with_apple: ^6.1.0 crypto: ^3.0.3 dev_dependencies: flutter_test: sdk: flutter - flutter_lints: ^2.0.0 + flutter_lints: ^4.0.0 flutter: assets: