title: Error only appears in release mode and not in debug mode
body: <p>Everything is working fine in debug mode but when I run the application in release mode, it produces this screen:
  <img src="https://i.imgur.com/lwdlUXG.png" alt="1" /></p>
  <p>and when I try hosting the application on firebase, I get this screen:
  <img src="https://i.imgur.com/Ve6IWSx.png" alt="2" /></p>
  <p>I am not sure how to handle this error as there is not much info on this issue. But based on the &quot;No firebase app&quot; error, i think that the error might be in my main.dart.</p>
  <h1>main.dart</h1>
  <pre><code>void main() {
    assert(() {
      fb.initializeApp(
        apiKey: &quot;&quot;,
        authDomain: &quot;&quot;,
        databaseURL: &quot;&quot;,
        projectId: &quot;&quot;,
        storageBucket: &quot;&quot;,
        messagingSenderId: &quot;&quot;,
      );
  
      return true;
    }());
  
    WidgetsFlutterBinding.ensureInitialized();
    BlocSupervisor.delegate = GeneralBlocDelegate();
  
    runApp(MultiRepositoryProvider(
        providers: [
          RepositoryProvider&lt;UserRepository&gt;(
              builder: (context) =&gt; UserRepository()),
        ],
        child: MultiBlocProvider(providers: [
          BlocProvider&lt;AuthBloc&gt;(
            builder: (context) =&gt; AuthBloc(
                userRepository: RepositoryProvider.of&lt;UserRepository&gt;(context))
              ..add(AppStarted()),
          ),
        ], child: App())));
  }
  </code></pre>
  <h1>index.html</h1>
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
    &lt;meta charset=&quot;UTF-8&quot;&gt;
    &lt;title&gt;my website&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;script src=&quot;main.dart.js&quot; type=&quot;application/javascript&quot;&gt;&lt;/script&gt;
  
    &lt;script src=&quot;https://www.gstatic.com/firebasejs/7.2.1/firebase-app.js&quot;&gt;&lt;/script&gt;
    &lt;script src=&quot;https://www.gstatic.com/firebasejs/7.2.1/firebase-auth.js&quot;&gt;&lt;/script&gt;
    &lt;script src=&quot;https://www.gstatic.com/firebasejs/7.2.1/firebase-firestore.js&quot;&gt;&lt;/script&gt;
  
    &lt;script src=&quot;/__/firebase/7.2.2/firebase-app.js&quot;&gt;&lt;/script&gt;
    &lt;script src=&quot;/__/firebase/7.2.2/firebase-auth.js&quot;&gt;&lt;/script&gt;
    &lt;script src=&quot;/__/firebase/7.2.2/firebase-firestore.js&quot;&gt;&lt;/script&gt;
    &lt;script src=&quot;/__/firebase/init.js&quot;&gt;&lt;/script&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  
  </code></pre>
  <h1>pubspec.yaml</h1>
  <pre><code>description: A new Flutter project.
  version: 1.0.0+1
  
  environment:
    sdk: &quot;&gt;=2.1.0 &lt;3.0.0&quot;
  
  dependencies:
    flutter:
      sdk: flutter
  
    cupertino_icons: ^0.1.2
  
    firebase: ^6.0.0
    flutter_bloc: ^1.0.0
    equatable: ^0.6.1
    font_awesome_flutter: ^8.5.0
  
  dev_dependencies:
    flutter_test:
      sdk: flutter
  
  flutter:
    uses-material-design: true
    assets:
      - assets/images/
  </code></pre>