How to add scopes to googleSignIn using Flutter

I'm having trouble using googleSignIn in Flutter, but only if I want to pass in scopes. Specifically, I'm trying to access Google's Healthcare API. I have a class that looks like this:

class GcsClient extends GoogleSignIn {
  GcsClient({this.baseUrl, List<String> scopes, String clientId})
      : super(clientId: clientId, scopes: scopes);

  final FhirUri baseUrl;

  Future access() async {
    final GoogleSignIn googleSignIn = GoogleSignIn();
    try {
      final account = await googleSignIn.signIn();
    } catch (e) {

When I call the access() method I sign in with no problem. Then I add the clientId (android app registered on google cloud, and user with access to the healthcare api specified), with some basic scopes, so signIn now looks like this:

final GoogleSignIn googleSignIn = GoogleSignIn(
      scopes: ['profile', 'email']);

I again signin with no problems, although I can't access the Healthcare API. Next step is to add the scopes. I've tried both '' and and the two together. So signin is now:

    final GoogleSignIn googleSignIn = GoogleSignIn(
      scopes: [

But now when I run my app, it pulls up the login, I enter my user's information, and then it hangs. I get stuck with a white popup and the circular progress indicator going round and round but never responds. I'm happy to provide anymore information that might be helpful. Anyone have any idea what's going on?

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum