Button.img constructor

const Button.img({
  1. Key? key,
  2. String? text,
  3. Widget? child,
  4. required IconData? icon,
  5. required TouchTap? onTap,
  6. bool isCircle = true,
  7. EdgeInsets? paddingInside,
  8. double? radius,
  9. Decoration? decoration,
  10. num? paddingChild = 8,
  11. double? size,
  12. double? sizeH,
  13. PrimarySecondary<Color>? color,
  14. num? textSize,
  15. EdgeInsets? paddingOuter,
  16. EdgeInsets? margin,
  17. double? pressedOpacity,
  18. Color? borderColor,
  19. int? touchSpaced,
  20. num? leftR,
  21. num? topB,
})

图标按钮

Implementation

const Button.img({
  Key? key,
  this.text,
  this.child,
  required this.icon,
  required this.onTap,
  this.isCircle = true,
  this.paddingInside,
  this.radius,
  this.decoration,
  this.paddingChild = 8,
  this.size,
  this.sizeH,
  this.color,
  this.textSize,
  this.paddingOuter,
  this.margin,
  this.pressedOpacity,
  this.borderColor,
  this.touchSpaced,
  this.leftR,
  this.topB,
})  : this.style = null,
      super(key: key);