CardImageTheme constructor

const CardImageTheme({
  1. AbstractButtonStyle? style,
  2. Axis? direction,
  3. double? hoverScale,
  4. double? normalScale,
  5. Color? backgroundColor,
  6. Color? borderColor,
  7. double? gap,
})

Creates a CardImageTheme.

All parameters are optional and provide default styling for CardImage widgets in the component tree.

Parameters:

  • style (AbstractButtonStyle?): button style configuration
  • direction (Axis?): layout direction (vertical/horizontal)
  • hoverScale (double?): image scale on hover (default: 1.05)
  • normalScale (double?): normal image scale (default: 1.0)
  • backgroundColor (Color?): image background color
  • borderColor (Color?): image border color
  • gap (double?): spacing between image and content

Example:

CardImageTheme(
  hoverScale: 1.1,
  direction: Axis.horizontal,
  backgroundColor: Colors.grey.shade50,
);

Implementation

const CardImageTheme({
  this.style,
  this.direction,
  this.hoverScale,
  this.normalScale,
  this.backgroundColor,
  this.borderColor,
  this.gap,
});