1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-11 23:39:14 +00:00

Migrate web dashboard to null safety (#928)

* update dependencies

* Update to cloud_firestore 2.x.x

* run dart migrate

* Fix analyzer warnings from null safety migration

* Fix errors resulting from null safety migration

* Fix info level warnings

* run flutter format

* fix tests

* remove unused import, format
This commit is contained in:
John Ryan
2021-10-12 14:38:34 -07:00
committed by GitHub
parent 0061b0d70d
commit 4893a24625
20 changed files with 277 additions and 301 deletions

View File

@@ -11,9 +11,9 @@ class SignInPage extends StatelessWidget {
final ValueChanged<User> onSuccess;
const SignInPage({
@required this.auth,
@required this.onSuccess,
Key key,
required this.auth,
required this.onSuccess,
Key? key,
}) : super(key: key);
@override
@@ -31,9 +31,9 @@ class SignInButton extends StatefulWidget {
final ValueChanged<User> onSuccess;
const SignInButton({
@required this.auth,
@required this.onSuccess,
Key key,
required this.auth,
required this.onSuccess,
Key? key,
}) : super(key: key);
@override
@@ -41,7 +41,7 @@ class SignInButton extends StatefulWidget {
}
class _SignInButtonState extends State<SignInButton> {
Future<bool> _checkSignInFuture;
Future<bool>? _checkSignInFuture;
@override
void initState() {