SilButton constructor
const
SilButton({
- String? imgPath,
- double? imgHeight,
- double? imgWidth,
- BoxFit? imgFit,
- Widget? placeholderImgWidget,
- String? placeholderImgPath,
- String? errorImgPath,
- Color? imgBorderColor,
- double? imgBorderWidth,
- double? imgRadius,
- String? title,
- TextStyle? titleStyle,
- Color? titleColor,
- double? fontSize,
- FontWeight? fontWeight,
- String? fontFamily,
- double? lineHeight,
- int? maxLines,
- double? space,
- ImagePosition? imagePosition = ImagePosition.Right,
- TextAlign? textAlign,
- TextDirection? textDirection,
- String? packageName,
- Key? key,
- double? height,
- double? width,
- double? radius,
- BorderRadiusGeometry? borderRadius,
- void onTapFunc()?,
- void onLongPress()?,
- double? borderWidth,
- Color? borderColor,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? margin,
- AlignmentGeometry? alignment,
- Color? backgroundColor,
- bool useConstrained = false,
Implementation
const SilButton(
{this.imgPath,
this.imgHeight,
this.imgWidth,
this.imgFit,
this.placeholderImgWidget,
this.placeholderImgPath,
this.errorImgPath,
this.imgBorderColor,
this.imgBorderWidth,
this.imgRadius,
this.title,
this.titleStyle,
this.titleColor,
this.fontSize,
this.fontWeight,
this.fontFamily,
this.lineHeight,
this.maxLines,
this.space,
this.imagePosition = ImagePosition.Right,
this.textAlign,
this.textDirection,
this.packageName,
Key? key,
double? height,
double? width,
double? radius,
BorderRadiusGeometry? borderRadius,
void Function()? onTapFunc,
void Function()? onLongPress,
double? borderWidth,
Color? borderColor,
EdgeInsetsGeometry? padding,
EdgeInsetsGeometry? margin,
AlignmentGeometry? alignment,
Color? backgroundColor,
bool useConstrained = false})
: super(
key: key,
width: width,
height: height,
radius: radius,
borderRadius: borderRadius,
onTapFunc: onTapFunc,
onLongPress: onLongPress,
borderWidth: borderWidth,
borderColor: borderColor,
padding: padding,
margin: margin,
backgroundColor: backgroundColor,
useConstrained: useConstrained);