GenericSocialButton constructor
const
GenericSocialButton({})
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);