Flutter hot reload and hot restart stop working after doing the minimum to connect my app to a firebase project.
I have connected three different flutter projects to three different firebase projects and none of them have allowed me to hot reload or hot refresh. After following the instructions on firebase to connect my app the only thing I add is this.
main() async {
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp();
runApp(MyApp());
}
and I always get the same errors:
Unhandled exception:
Null check operator used on a null value
#0 IncrementalCompiler._initializeExperimentalInvalidation (package:front_end/src/fasta/incremental_compiler.dart:1226:53)
<asynchronous suspension>
#1 IncrementalCompiler.computeDelta.<anonymous closure> (package:front_end/src/fasta/incremental_compiler.dart:324:11)
<asynchronous suspension>
#2 IncrementalCompiler.compile (package:vm/incremental_compiler.dart:68:50)
<asynchronous suspension>
#3 FrontendCompiler.compile (package:frontend_server/frontend_server.dart:572:11)
<asynchronous suspension>
#4 listenAndCompile.<anonymous closure> (package:frontend_server/frontend_server.dart:1210:11)
<asynchronous suspension>