title: Google Drive Consent Screen Stuck
body: <p>I am trying to backup the application data of my android app on Google Drive. Therefore I request access to the <a href="https://www.googleapis.com/auth/drive.appdata" rel="noreferrer">https://www.googleapis.com/auth/drive.appdata</a>, <a href="https://www.googleapis.com/auth/drive.file" rel="noreferrer">https://www.googleapis.com/auth/drive.file</a> scopes using the google_sign_in package.</p>
  
  <p>I created a project on the Google Developer Console, enabled the Drive API and added the scopes to the OAuth Consent Screen and added an OAuth Client ID with the package name and the SHA-1 of the debug key.</p>
  
  <p>The application works fine if I don't request any scopes, requesting the "drive" scopes however makes the consent screen being stuck and it keeps loading forever.
  Is there anything that I am missing?</p>
  
  <p>Below are the code of the application and the stuck screen loading
  <a href="https://i.stack.imgur.com/JnLI5.png" rel="noreferrer"><img src="https://i.stack.imgur.com/JnLI5.png" alt="Consent Screen Loading"></a></p>
  
  <pre><code>import 'package:flutter/material.dart';
  import 'package:google_sign_in/google_sign_in.dart';
  
  Future&lt;GoogleSignInAccount&gt; handleSignIn() async {
    try {
      return await GoogleSignIn(
        scopes: [
          'https://www.googleapis.com/auth/drive.appdata',
          'https://www.googleapis.com/auth/drive.file',
        ],
      ).signIn();
    } catch (error) {
      print(error);
      return null;
    }
  }
  
  void main() =&gt; runApp(MyApp());
  
  class MyApp extends StatelessWidget {
    @override
    Widget build(BuildContext context) {
      return MaterialApp(
        title: 'Flutter Demo',
        theme: ThemeData(
          primarySwatch: Colors.blue,
        ),
        home: Scaffold(
          appBar: AppBar(
            title: Text(""),
          ),
          body: Center(
            child: Column(
              mainAxisAlignment: MainAxisAlignment.center,
              children: &lt;Widget&gt;[
                FlatButton(
                  child: const Text("Login with Google"),
                  onPressed: () {
                    () async {
                      final signInResult = await handleSignIn();
                      print(signInResult);
                    }();
                  },
                ),
              ],
            ),
          ),
        )
      );
    }
  }
  </code></pre>