Button.img constructor
const
Button.img({
- Key? key,
- String? text,
- Widget? child,
- required IconData? icon,
- required TouchTap? onTap,
- bool isCircle = true,
- EdgeInsets? paddingInside,
- double? radius,
- Decoration? decoration,
- num? paddingChild = 8,
- double? size,
- double? sizeH,
- PrimarySecondary<
Color> ? color, - num? textSize,
- EdgeInsets? paddingOuter,
- EdgeInsets? margin,
- double? pressedOpacity,
- Color? borderColor,
- int? touchSpaced,
- num? leftR,
- 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);