ImageCard constructor

const ImageCard({
  1. Key? key,
  2. required ImageProvider<Object> image,
  3. String? title,
  4. double textScaleFactor = 1,
  5. Color accentColor = Colors.black,
  6. Color textColor = Colors.white,
  7. String? description,
  8. GestureTapCallback? onTap,
  9. double? elevation,
  10. GestureTapDownCallback? onTapDown,
  11. GestureTapUpCallback? onTapUp,
  12. GestureTapCallback? onTapCancel,
  13. GestureTapCallback? onDoubleTap,
  14. GestureLongPressCallback? onLongPress,
  15. GestureTapCallback? onSecondaryTap,
  16. GestureTapDownCallback? onSecondaryTapDown,
  17. GestureTapUpCallback? onSecondaryTapUp,
  18. GestureTapCallback? onSecondaryTapCancel,
  19. ValueChanged<bool>? onHighlightChanged,
  20. ValueChanged<bool>? onHover,
  21. MouseCursor? mouseCursor,
  22. bool enableFeedback = true,
  23. ValueChanged<bool>? onFocusChange,
  24. bool autofocus = false,
  25. FocusNode? focusNode,
  26. bool canRequestFocus = true,
  27. WidgetStatesController? statesController,
  28. Duration? hoverDuration,
  29. string? tooltip,
  30. MainAxisAlignment mainAxisAlignment = MainAxisAlignment.end,
  31. 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,
});