CardImageTheme constructor
const
CardImageTheme({})
Creates a CardImageTheme.
All parameters are optional and provide default styling for CardImage widgets in the component tree.
Parameters:
style(AbstractButtonStyle?): button style configurationdirection(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 colorborderColor(Color?): image border colorgap(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,
});