GoogleAuthSetup constructor
const
GoogleAuthSetup({
- required String clientId,
- required String clientSecret,
- required String redirectUri,
- String? loginHint,
- dynamic onError()?,
- dynamic onSuccess(
- GoogleTokens tokens
- List<
String> scopes = const ["https://www.googleapis.com/auth/userinfo.profile", "https://www.googleapis.com/auth/userinfo.email"], - String appBarTitle = "Google Authorization",
- bool centerTitle = false,
- Widget loadingWidget = const Center(child: CircularProgressIndicator()),
- Widget successWidget = const Center(child: Text("Google Authorization Success")),
- Widget failureWidget = const Center(child: Text("Google Authrizarion Failed")),
Implementation
const GoogleAuthSetup({
required this.clientId,
required this.clientSecret,
required this.redirectUri,
this.loginHint,
this.onError,
this.onSuccess,
this.scopes = const [
"https://www.googleapis.com/auth/userinfo.profile",
"https://www.googleapis.com/auth/userinfo.email",
],
this.appBarTitle = "Google Authorization",
this.centerTitle = false,
this.loadingWidget = const Center(child: CircularProgressIndicator()),
this.successWidget = const Center(
child: Text("Google Authorization Success"),
),
this.failureWidget = const Center(
child: Text("Google Authrizarion Failed"),
),
});