CustomSignInButton constructor

const CustomSignInButton({
  1. double borderRadius = 5,
  2. Color buttonColor = const Color(0xFFEEEEEE),
  3. IconData customIcon = Icons.new_releases_rounded,
  4. double elevation = 0,
  5. double height = 40,
  6. Color iconColor = Colors.grey,
  7. double iconSize = 24,
  8. Color imageBackgroundColor = Colors.transparent,
  9. EdgeInsetsGeometry imageMargin = const EdgeInsets.all(4),
  10. EdgeInsetsGeometry imagePadding = const EdgeInsets.all(4),
  11. double iconLeftPadding = 0,
  12. double iconTopPadding = 0,
  13. double imageSize = 25,
  14. Key? key,
  15. bool mini = false,
  16. bool small = false,
  17. dynamic onPressed()?,
  18. AssetImage setAssetImage = const AssetImage(''),
  19. Color splashColor = Colors.white,
  20. String text = 'New Button',
  21. Color textColor = Colors.black87,
  22. double textSize = 15,
  23. bool useGoogleImage = false,
  24. bool useGradient = false,
  25. bool useText = true,
  26. Gradient setGradient = const LinearGradient(colors: [Colors.grey, Colors.grey]),
  27. 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);