Skip to content

Instantly share code, notes, and snippets.

@HansMuller
Created October 14, 2021 23:14
Show Gist options
  • Select an option

  • Save HansMuller/bed0779003ea88de0441be9765b24f18 to your computer and use it in GitHub Desktop.

Select an option

Save HansMuller/bed0779003ea88de0441be9765b24f18 to your computer and use it in GitHub Desktop.
return Scaffold(
body: SignInForm(
authentication: Authentication.OAuth,
stateFeedbackBuilder: (state, ..) {
if (state is SigningIn) return const CircularProgressIndicator();
if (state is AuthFailed) return ErrorText(state.exception);
return null;
},
providers: [
const ProviderButton<Google>();
],
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment