title: Flutter and Google Sing in: Invalid image data
body: <p>I have implemented Google Authentication with FlutterFire. I use the <a href="https://pub.dev/packages/google_sign_in" rel="nofollow noreferrer">official package</a> to sing in users.</p>
  <p>However, if I navigate to a page where the <strong>user profile picture is seen</strong> and try to render the <code>GoogleUserCircleAvatarar</code>, although the page seems to be working just fine, I get an error in the console:</p>
  <pre><code>
  ════════ Exception caught by image resource service ════════════════════════════════════════════════
  Exception: Invalid image data
  ════════════════════════════════════════════════════════════════════════════════════════════════════
  </code></pre>
  <p>On the screen, it takes a few milliseconds, to load up the picture. Before it's loaded, I can see the placeholder image (First letter of the users initials on a filled background) next to the user's name and email address (so the currentUser is loaded)  which transitions to the user profile picture. As I am using the recommended Widget, I am confused how should I prevent the error from happening.</p>
  <p>Code:</p>
  <pre><code>if (widget.userService.currentUser != null) {
        return Column(
          mainAxisAlignment: MainAxisAlignment.spaceAround,
          children: &lt;Widget&gt;[
            ListTile(
              leading: GoogleUserCircleAvatar(
                identity: widget.userService.currentUser,
              ),
              title: Text(widget.userService.currentUser.displayName ?? ''),
              subtitle: Text(widget.userService.currentUser.email ?? ''),
            ),
            const Text(&quot;Signed in successfully.&quot;),
            RaisedButton(
              child: const Text('SIGN OUT'),
              onPressed: _handleSignOut,
            ),
          ],
        );
      } else {
        ...
  </code></pre>
  <p><code>currentUser</code> object is created with the official API:</p>
  <pre><code>      currentUser = await GoogleSignIn().signIn();
  </code></pre>
  <p>and my <code>pubspec.yml</code>:</p>
  <pre><code>
  dependencies:
    flutter:
      sdk: flutter
    cloud_firestore: ^0.14.0+1
    provider: ^4.3.2+2
    google_sign_in: &quot;^4.5.1&quot;
    firebase_core: &quot;^0.5.0+1&quot;
    firebase_auth: &quot;^0.18.1+2&quot;
  
  </code></pre>