Skip to content

Commit 6cd84c4

Browse files
committed
fix: analyzer warnings
1 parent 4878437 commit 6cd84c4

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

lib/src/auth_handler.dart

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ part 'auth_controller.dart';
1111

1212
class FirebasePhoneAuthHandler extends StatefulWidget {
1313
const FirebasePhoneAuthHandler({
14-
Key? key,
14+
super.key,
1515
required this.phoneNumber,
1616
required this.builder,
1717
this.onLoginSuccess,
@@ -26,7 +26,7 @@ class FirebasePhoneAuthHandler extends StatefulWidget {
2626
this.otpExpirationDuration =
2727
FirebasePhoneAuthController.kAutoRetrievalTimeOutDuration,
2828
this.recaptchaVerifierForWebProvider,
29-
}) : super(key: key);
29+
});
3030

3131
/// {@template phoneNumber}
3232
///
@@ -175,8 +175,7 @@ class FirebasePhoneAuthHandler extends StatefulWidget {
175175
FirebasePhoneAuthController._of(context, listen: false).signOut();
176176

177177
@override
178-
// ignore: library_private_types_in_public_api
179-
_FirebasePhoneAuthHandlerState createState() =>
178+
State<FirebasePhoneAuthHandler> createState() =>
180179
_FirebasePhoneAuthHandlerState();
181180
}
182181

lib/src/auth_provider.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import 'package:provider/provider.dart';
66
/// to enable your application to support phone authentication.
77
class FirebasePhoneAuthProvider extends StatelessWidget {
88
const FirebasePhoneAuthProvider({
9-
Key? key,
9+
super.key,
1010
required this.child,
11-
}) : super(key: key);
11+
});
1212

1313
/// The child of the widget.
1414
final Widget child;

0 commit comments

Comments
 (0)