ImageCard constructor
const
ImageCard({ - Key? key,
- required ImageProvider<Object> image,
- String? title,
- double textScaleFactor = 1,
- Color accentColor = Colors.black,
- Color textColor = Colors.white,
- String? description,
- GestureTapCallback? onTap,
- double? elevation,
- GestureTapDownCallback? onTapDown,
- GestureTapUpCallback? onTapUp,
- GestureTapCallback? onTapCancel,
- GestureTapCallback? onDoubleTap,
- GestureLongPressCallback? onLongPress,
- GestureTapCallback? onSecondaryTap,
- GestureTapDownCallback? onSecondaryTapDown,
- GestureTapUpCallback? onSecondaryTapUp,
- GestureTapCallback? onSecondaryTapCancel,
- ValueChanged<bool>? onHighlightChanged,
- ValueChanged<bool>? onHover,
- MouseCursor? mouseCursor,
- bool enableFeedback = true,
- ValueChanged<bool>? onFocusChange,
- bool autofocus = false,
- FocusNode? focusNode,
- bool canRequestFocus = true,
- WidgetStatesController? statesController,
- Duration? hoverDuration,
- string? tooltip,
- MainAxisAlignment mainAxisAlignment = MainAxisAlignment.end,
- CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.start,
})
Implementation
const ImageCard({
super.key,
required this.image,
this.title,
this.textScaleFactor = 1,
this.accentColor = Colors.black,
this.textColor = Colors.white,
this.description,
this.onTap,
this.elevation,
this.onTapDown,
this.onTapUp,
this.onTapCancel,
this.onDoubleTap,
this.onLongPress,
this.onSecondaryTap,
this.onSecondaryTapDown,
this.onSecondaryTapUp,
this.onSecondaryTapCancel,
this.onHighlightChanged,
this.onHover,
this.mouseCursor,
this.enableFeedback = true,
this.onFocusChange,
this.autofocus = false,
this.focusNode,
this.canRequestFocus = true,
this.statesController,
this.hoverDuration,
this.tooltip,
this.mainAxisAlignment = MainAxisAlignment.end,
this.crossAxisAlignment = CrossAxisAlignment.start,
});