GenericSocialButton constructor

const GenericSocialButton({
  1. Key? key,
  2. Color foregroundColor = Colors.white,
  3. Color? backgroundColor = Colors.black,
  4. required String name,
  5. required dynamic initiator(
    1. BuildContext
    ),
  6. String? logoURL,
  7. String? customString,
  8. bool useBorder = false,
  9. Color borderColor = Colors.black,
})

A Generic Tempalte to create Custom SignIn Buttons

The Social and Anonymous Buttons on use this under the hood

configuration - If you want a custom text for your button

customString - If you want a custom text for your button

name (required) - The Name of your SignIn Method, Example: Google, Snonymous, Github etc

logoURL - The URL to an Image to be used in the button next to the text

initiator (required) - A Function that accepts a BuildContext which initiates the SignIn Process

foregroundColor - The Text Color

backgroundColor - The Background Color

Implementation

const GenericSocialButton({
  Key? key,
  this.foregroundColor = Colors.white,
  this.backgroundColor = Colors.black,
  required this.name,
  required this.initiator,
  this.logoURL,
  this.customString,
  this.useBorder = false,
  this.borderColor = Colors.black,
}) : super(key: key);