Skip to content

Commit

Permalink
Upgrade sign_in_with_apple dependency for WASM build support (#93)
Browse files Browse the repository at this point in the history
* Upgrade `sign_in_with_apple` dependency for WASM build support

* Resolve Flutter linting issues

* Fix remaining linting error
  • Loading branch information
geoextra authored Jun 1, 2024
1 parent d7538f4 commit d8ef470
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions lib/src/components/supa_email_auth.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -94,7 +94,7 @@ class SupaEmailAuth extends StatefulWidget {
this.metadataFields,
this.extraMetadata,
this.localization = const SupaEmailAuthLocalization(),
}) : super(key: key);
});

@override
State<SupaEmailAuth> createState() => _SupaEmailAuthState();
Expand Down
4 changes: 2 additions & 2 deletions lib/src/components/supa_magic_auth.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
4 changes: 2 additions & 2 deletions lib/src/components/supa_phone_auth.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
4 changes: 2 additions & 2 deletions lib/src/components/supa_reset_password.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
12 changes: 6 additions & 6 deletions lib/src/components/supa_socials_auth.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -138,7 +138,7 @@ class SupaSocialsAuth extends StatefulWidget {
this.scopes,
this.queryParams,
this.localization = const SupaSocialsAuthLocalization(),
}) : super(key: key);
});

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

0 comments on commit d8ef470

Please sign in to comment.