IDKitButton.corner constructor
IDKitButton.corner({
- double radius = 4,
- String? title,
- TextStyle? style,
- String? disableTitle,
- TextStyle? disableStyle,
- String? image,
- String? disableImage,
- Size? imgSize,
- BoxFit? imgFit,
- Color? bgColor,
- Color? disableBgColor,
- double? width,
- double? height,
- BtnCornerType cornerType = BtnCornerType.all,
- EdgeInsetsGeometry? margin,
- EdgeInsetsGeometry? padding,
- Duration? duration,
- dynamic onTap()?,
- bool enable = true,
- Stream<
bool> ? enableStream,
Buttons of the chamfer type series
Implementation
factory IDKitButton.corner({
double radius = 4,
String? title,
TextStyle? style,
String? disableTitle,
TextStyle? disableStyle,
String? image,
String? disableImage,
Size? imgSize,
BoxFit? imgFit,
Color? bgColor,
Color? disableBgColor,
double? width,
double? height,
BtnCornerType cornerType = BtnCornerType.all,
EdgeInsetsGeometry? margin,
EdgeInsetsGeometry? padding,
Duration? duration,
Function()? onTap,
bool enable = true,
Stream<bool>? enableStream,
}) {
return IDKitButton(
title: title,
style: style,
disableTitle: disableTitle,
disableStyle: disableStyle,
image: image,
disableImage: disableImage,
decoration: BtnTools.getCornerDecoration(radius, cornerType, color: bgColor),
disableDecoration: BtnTools.getCornerDecoration(radius, cornerType, color: disableBgColor),
margin: margin,
padding: padding,
onTap: onTap,
enable: enable,
width: width,
height: height,
duration: duration,
enableStream: enableStream,
imgSize: imgSize,
imgFit: imgFit,
);
}