Skip to content

Commit 764b82f

Browse files
committed
Resolve Flutter linting issues
1 parent dfc3724 commit 764b82f

6 files changed

+14
-14
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: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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();

0 commit comments

Comments
 (0)