CardImageTheme class
Theme configuration for CardImage components.
Defines visual properties like scale animations, background colors, border styling, and layout direction. Applied through the widget tree using ComponentTheme to provide consistent theming across card images.
Example:
ComponentTheme(
data: CardImageTheme(
hoverScale: 1.1,
backgroundColor: Colors.grey.shade100,
direction: Axis.horizontal,
),
child: MyApp(),
);
Constructors
- CardImageTheme.new({AbstractButtonStyle? style, Axis? direction, double? hoverScale, double? normalScale, Color? backgroundColor, Color? borderColor, double? gap})
-
Creates a CardImageTheme.
const
Properties
- backgroundColor → Color?
-
Background color for the image container.
final
- borderColor → Color?
-
Border color for the image container.
final
- direction → Axis?
-
Layout direction for title/subtitle relative to the image.
final
- gap → double?
-
Gap between image and text content.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- hoverScale → double?
-
Scale factor when hovering over the image.
final
- normalScale → double?
-
Normal scale factor for the image.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style → AbstractButtonStyle?
-
Button style for the card.
final
Methods
-
copyWith(
{ValueGetter< AbstractButtonStyle?> ? style, ValueGetter<Axis?> ? direction, ValueGetter<double?> ? hoverScale, ValueGetter<double?> ? normalScale, ValueGetter<Color?> ? backgroundColor, ValueGetter<Color?> ? borderColor, ValueGetter<double?> ? gap}) → CardImageTheme - Creates a copy of this theme with optionally overridden properties.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override