TatweerPrimaryButton constructor
const
TatweerPrimaryButton({
- Key? key,
- required double borderRadius,
- required Color buttonColor,
- required IconData customIcon,
- required double elevation,
- required double height,
- required Color iconColor,
- required double iconSize,
- required Color imageBackgroundColor,
- required EdgeInsetsGeometry imageMargin,
- required EdgeInsetsGeometry imagePadding,
- required double iconLeftPadding,
- required double iconTopPadding,
- required double imageSize,
- required bool mini,
- required bool small,
- dynamic onPressed()?,
- required AssetImage setAssetImage,
- required Color splashColor,
- required String text,
- required Color textColor,
- required double textSize,
- required bool useGoogleImage,
- required bool useGradient,
- required bool showText,
- required Gradient setGradient,
- required double width,
Implementation
const TatweerPrimaryButton(
{Key? key,
required this.borderRadius,
required this.buttonColor,
required this.customIcon,
required this.elevation,
required this.height,
required this.iconColor,
required this.iconSize,
required this.imageBackgroundColor,
required this.imageMargin,
required this.imagePadding,
required this.iconLeftPadding,
required this.iconTopPadding,
required this.imageSize,
required this.mini,
required this.small,
this.onPressed,
required this.setAssetImage,
required this.splashColor,
required this.text,
required this.textColor,
required this.textSize,
required this.useGoogleImage,
required this.useGradient,
required this.showText,
required this.setGradient,
required this.width})
: super(key: key);