I have followed "Enabling null safety" on dart.dev
and also migrated my whole Flutter application to null safety.
Now, I am trying to run it using flutter run
. However, it will not start because of the following error:
Error: Cannot run with sound null safety, because the following dependencies
don't support null safety:
- package:cloud_firestore_web
- package:firebase_core_web
- package:shared_preferences
- package:url_launcher_web
- package:firebase_auth
- package:http
- package:provider
...
For solutions, see https://dart.dev/go/unsound-null-safety
Failed to compile application.
The guide at the URL says that I should "wait for dependencies to migrate before you migrate your package", but I want to use non-nullable by default (NNBD) now.
How can I do that?
main.dart
next to the device and then on "Edit configurations"). – Nashbar