SilButton constructor

const SilButton({
  1. String? imgPath,
  2. double? imgHeight,
  3. double? imgWidth,
  4. BoxFit? imgFit,
  5. Widget? placeholderImgWidget,
  6. String? placeholderImgPath,
  7. String? errorImgPath,
  8. Color? imgBorderColor,
  9. double? imgBorderWidth,
  10. double? imgRadius,
  11. String? title,
  12. TextStyle? titleStyle,
  13. Color? titleColor,
  14. double? fontSize,
  15. FontWeight? fontWeight,
  16. String? fontFamily,
  17. double? lineHeight,
  18. int? maxLines,
  19. double? space,
  20. ImagePosition? imagePosition = ImagePosition.Right,
  21. TextAlign? textAlign,
  22. TextDirection? textDirection,
  23. String? packageName,
  24. Key? key,
  25. double? height,
  26. double? width,
  27. double? radius,
  28. BorderRadiusGeometry? borderRadius,
  29. void onTapFunc()?,
  30. void onLongPress()?,
  31. double? borderWidth,
  32. Color? borderColor,
  33. EdgeInsetsGeometry? padding,
  34. EdgeInsetsGeometry? margin,
  35. AlignmentGeometry? alignment,
  36. Color? backgroundColor,
  37. 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);