Skip to content

Upgrade sign_in_with_apple dependency for WASM build support #93

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/src/components/supa_email_auth.dart
Original file line number Diff line number Diff line change
@@ -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<SupaEmailAuth> createState() => _SupaEmailAuthState();
4 changes: 2 additions & 2 deletions lib/src/components/supa_magic_auth.dart
Original file line number Diff line number Diff line change
@@ -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<SupaMagicAuth> createState() => _SupaMagicAuthState();
4 changes: 2 additions & 2 deletions lib/src/components/supa_phone_auth.dart
Original file line number Diff line number Diff line change
@@ -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<SupaPhoneAuth> createState() => _SupaPhoneAuthState();
4 changes: 2 additions & 2 deletions lib/src/components/supa_reset_password.dart
Original file line number Diff line number Diff line change
@@ -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<SupaResetPassword> createState() => _SupaResetPasswordState();
12 changes: 6 additions & 6 deletions lib/src/components/supa_socials_auth.dart
Original file line number Diff line number Diff line change
@@ -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<SupaSocialsAuth> createState() => _SupaSocialsAuthState();
@@ -360,10 +360,10 @@ class _SupaSocialsAuthState extends State<SupaSocialsAuth> {
}

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(
4 changes: 2 additions & 2 deletions lib/src/components/supa_verify_phone.dart
Original file line number Diff line number Diff line change
@@ -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<SupaVerifyPhone> createState() => _SupaVerifyPhoneState();
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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: