CustomSignInButton constructor
const
CustomSignInButton({
- double borderRadius = 5,
- Color buttonColor = const Color(0xFFEEEEEE),
- IconData customIcon = Icons.new_releases_rounded,
- double elevation = 0,
- double height = 40,
- Color iconColor = Colors.grey,
- double iconSize = 24,
- Color imageBackgroundColor = Colors.transparent,
- EdgeInsetsGeometry imageMargin = const EdgeInsets.all(4),
- EdgeInsetsGeometry imagePadding = const EdgeInsets.all(4),
- double iconLeftPadding = 0,
- double iconTopPadding = 0,
- double imageSize = 25,
- Key? key,
- bool mini = false,
- bool small = false,
- dynamic onPressed()?,
- AssetImage setAssetImage = const AssetImage(''),
- Color splashColor = Colors.white,
- String text = 'New Button',
- Color textColor = Colors.black87,
- double textSize = 15,
- bool useGoogleImage = false,
- bool useGradient = false,
- bool useText = true,
- Gradient setGradient = const LinearGradient(colors: [Colors.grey, Colors.grey]),
- double width = double.infinity,
Implementation
const CustomSignInButton({
this.borderRadius = 5,
this.buttonColor = const Color(0xFFEEEEEE),
this.customIcon = Icons.new_releases_rounded,
this.elevation = 0,
this.height = 40,
this.iconColor = Colors.grey,
this.iconSize = 24,
this.imageBackgroundColor = Colors.transparent,
this.imageMargin = const EdgeInsets.all(4),
this.imagePadding = const EdgeInsets.all(4),
this.iconLeftPadding = 0,
this.iconTopPadding = 0,
this.imageSize = 25,
Key? key,
this.mini = false,
this.small = false,
this.onPressed,
this.setAssetImage = const AssetImage(''),
this.splashColor = Colors.white,
this.text = 'New Button',
this.textColor = Colors.black87,
this.textSize = 15,
this.useGoogleImage = false,
this.useGradient = false,
this.useText = true,
this.setGradient = const LinearGradient(colors: [Colors.grey, Colors.grey]),
this.width = double.infinity,
}) : super(key: key);