title: How To Run Firebase Queries In An Isolate In Flutter
body: <p>Am trying to upload files to Firebase storage in an isolate but it doesn't seem to be working. I keep getting the following exceptions:</p>
  <pre><code>E/flutter ( 1527): [ERROR:flutter/lib/ui/ui_dart_state.cc(166)] Unhandled Exception: [core/no-app] No Firebase App '[DEFAULT]' has been created - call Firebase.initializeApp()
  E/flutter ( 1527): #0      MethodChannelFirebase.app (package:firebase_core_platform_interface/src/method_channel/method_channel_firebase.dart:118:5)
  E/flutter ( 1527): #1      Firebase.app (package:firebase_core/src/firebase.dart:52:41)
  E/flutter ( 1527): #2      FirebaseFirestore.instance (package:cloud_firestore/src/firestore.dart:43:21)
  E/flutter ( 1527): #3      new ForumsProvider (package:trumate/src/providers/forums.provider.dart:31:41)
  E/flutter ( 1527): #4      CommonProvider.videoPost (package:trumate/src/providers/common.provider.dart:100:29)
  E/flutter ( 1527): &lt;asynchronous suspension&gt;
  E/flutter ( 1527): #5      CommonProvider.backgroundVideoUpload (package:trumate/src/providers/common.provider.dart:112:5)
  E/flutter ( 1527): #6      FlutterIsolate._isolateInitialize.&lt;anonymous closure&gt;.&lt;anonymous closure&gt; (package:flutter_isolate/flutter_isolate.dart:128
  </code></pre>
  <p>Am using flutter_isolate: ^1.0.0+14 plugin for that. But it seems running Firebase queries inside the isolate is the issue.</p>
  <p>My main has <code>await Firebase.initializeApp();</code> so I don't know I am getting such error.</p>