ImageButton constructor

const ImageButton({
  1. Key? key,
  2. BoxFit? fit,
  3. double padding = 8,
  4. double margin = 0,
  5. double? marginHorizontal,
  6. double? marginVertical,
  7. double? marginTop,
  8. double? marginBottom,
  9. double? marginStart,
  10. double? marginEnd,
  11. double borderRadius = 25,
  12. bool enabled = true,
  13. dynamic onClick(
    1. BuildContext context
    )?,
  14. dynamic src,
  15. double size = 24,
  16. IconData? iconState(
    1. IBState state
    )?,
  17. Color? tint,
  18. Color? tintState(
    1. IBState state
    )?,
  19. Color? background = Colors.transparent,
  20. Color? backgroundState(
    1. IBState state
    )?,
  21. Color? rippleColor,
  22. Color? pressedColor = const Color(0xFFF2F2F2),
  23. IBIconType type = IBIconType.detect,
})

Implementation

const ImageButton({
  super.key,
  this.fit,
  this.padding = 8,
  this.margin = 0,
  this.marginHorizontal,
  this.marginVertical,
  this.marginTop,
  this.marginBottom,
  this.marginStart,
  this.marginEnd,
  this.borderRadius = 25,
  this.enabled = true,
  this.onClick,
  this.src,
  this.size = 24,
  this.iconState,
  this.tint,
  this.tintState,
  this.background = Colors.transparent,
  this.backgroundState,
  this.rippleColor,
  this.pressedColor = const Color(0xFFF2F2F2),
  this.type = IBIconType.detect,
});