web_only library
This library exposes web-only methods of GoogleSignInPlatform.instance
.
The exported methods will assert that the GoogleSignInPlatform.instance
is an instance of class GoogleSignInPlugin (the web implementation of
google_sign_in
provided by this package).
Classes
- GSIButtonConfiguration
- A class to configure the Google Sign-In Button for web.
Enums
- GSIButtonLogoAlignment
- The alignment of the Google logo. The default value is left. This attribute only applies to the standard button type.
- GSIButtonShape
- The button shape.
- GSIButtonSize
- The size of the button to be rendered.
- GSIButtonText
- The button text.
- GSIButtonTheme
- The theme of the button to be rendered.
- GSIButtonType
- The type of button to be rendered.
Functions
-
renderButton(
{GSIButtonConfiguration? configuration}) → Widget -
Render the GIS Sign-In Button widget with
configuration
. -
requestServerAuthCode(
) → Future< String?> - Requests server auth code from the GIS Client.