title: Flutter: converting project to web
body: <p>I have a flutter project currently working well on Android and Ios. I am currently trying to get it working on the web, and while the frontend seems to be fine, im noticing issues with my streams. For instance, when initially loading the app as an authenticated user, a stream of special users called Stingrays is loaded. This works fine on mobile, however in web i get hung up on the following:</p>
  <p>error:</p>
  <pre><code>Failed to evaluate expression 'stingrays': InternalError: No frame with index 84.
  </code></pre>
  <p>bloc code:</p>
  <pre><code>  void _onLoadStingray(
      LoadStingray event,
      Emitter&lt;StingrayState&gt; emit,
    ) {
      _firestoreRepository.stingrays.listen((stingrays) {
        add(
          UpdateStingray(stingrays: stingrays),
        );
      });
    }
  </code></pre>
  <p>Stream:</p>
  <pre><code>  Stream&lt;List&lt;Stingray?&gt;&gt; get stingrays {
      return FirebaseFirestore.instance
          .collection('stingrays')
          .snapshots()
          .map&lt;List&lt;Stingray?&gt;&gt;(_stingrayListFromSnapshot);
    }
  </code></pre>
  <p>Its also not loading any image in the app, saying:</p>
  <pre><code>ImageCodecException: Failed to load network image.
  </code></pre>
  <p>Any idea whats going on with all this?</p>