IDKitButton.image constructor

IDKitButton.image(
  1. String image, {
  2. String? disableImage,
  3. Size? imgSize,
  4. BoxFit? imgFit,
  5. Color? bgColor,
  6. Color? disableBgColor,
  7. Decoration? decoration,
  8. Decoration? disableDecoration,
  9. double? width,
  10. double? height,
  11. EdgeInsetsGeometry? margin,
  12. EdgeInsetsGeometry? padding,
  13. String? backgroundImage,
  14. Duration? duration,
  15. dynamic onTap()?,
  16. bool enable = true,
  17. Stream<bool>? enableStream,
})

Image-only button

Implementation

factory IDKitButton.image(
  String image, {
  String? disableImage,
  Size? imgSize,
  BoxFit? imgFit,
  Color? bgColor,
  Color? disableBgColor,
  Decoration? decoration,
  Decoration? disableDecoration,
  double? width,
  double? height,
  EdgeInsetsGeometry? margin,
  EdgeInsetsGeometry? padding,
  String? backgroundImage,
  Duration? duration,
  Function()? onTap,
  bool enable = true,
  Stream<bool>? enableStream,
}) =>
    IDKitButton(
      image: image,
      margin: margin,
      padding: padding,
      width: width,
      height: height,
      backgroundImage: backgroundImage,
      onTap: onTap,
      enableStream: enableStream,
      enable: enable,
      duration: duration,
      bgColor: bgColor,
      disableBgColor: disableBgColor,
      decoration: decoration,
      disableDecoration: disableDecoration,
      disableImage: disableImage,
      imgFit: imgFit,
      imgSize: imgSize,
    );