ImageButton constructor
const
ImageButton({
- Key? key,
- BoxFit? fit,
- double padding = 8,
- double margin = 0,
- double? marginHorizontal,
- double? marginVertical,
- double? marginTop,
- double? marginBottom,
- double? marginStart,
- double? marginEnd,
- double borderRadius = 25,
- bool enabled = true,
- dynamic onClick(
- BuildContext context
- dynamic src,
- double size = 24,
- IconData? iconState(
- IBState state
- Color? tint,
- Color? tintState(
- IBState state
- Color? background = Colors.transparent,
- Color? backgroundState(
- IBState state
- Color? rippleColor,
- Color? pressedColor = const Color(0xFFF2F2F2),
- 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,
});