SocialButtonConfiguration constructor

SocialButtonConfiguration({
  1. Color? foregroundColor,
  2. Color? backgroundColor,
  3. bool? signInWithRedirect,
  4. dynamic onError(
    1. String
    )?,
  5. dynamic onSignInSuccessful(
    1. User?
    )?,
})

An Object thats used to provide Configuration settings to a SocialButton

signInWithRedirect (default false) is a boolean that is Flutter Web only and basically allows you to chose if you want your OAuth Screen to be a popup or a redirect. Setting this to true, will use a redirect. Currenly only useful in Google SignIn.

onError a Callback for any Error that may occur

onSignInSuccessful a Callback to perform any action after a successful SignIn

foregroundColor is the Text Color

backgroundColor is the Background Color

Implementation

SocialButtonConfiguration({
  this.foregroundColor,
  this.backgroundColor,
  this.signInWithRedirect,
  this.onError,
  this.onSignInSuccessful,
});