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. Key? key,
  24. double? height,
  25. double? width,
  26. double? radius,
  27. BorderRadiusGeometry? borderRadius,
  28. void onTapFunc()?,
  29. void onLongPress()?,
  30. double? borderWidth,
  31. Color? borderColor,
  32. EdgeInsetsGeometry? padding,
  33. EdgeInsetsGeometry? margin,
  34. AlignmentGeometry? alignment,
  35. Color? backgroundColor,
  36. 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,
  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);