ShadCardTheme class
- Annotations
-
- @themeGen
- @immutable
Constructors
-
ShadCardTheme({bool canMerge = true, Color? backgroundColor, EdgeInsetsGeometry? padding, BorderRadius? radius, ShadBorder? border, List<
BoxShadow> ? shadows, double? width, double? height, MainAxisAlignment? rowMainAxisAlignment, CrossAxisAlignment? rowCrossAxisAlignment, MainAxisAlignment? columnMainAxisAlignment, CrossAxisAlignment? columnCrossAxisAlignment, MainAxisSize? rowMainAxisSize, MainAxisSize? columnMainAxisSize, Clip? clipBehavior}) -
const
Properties
- backgroundColor → Color?
-
The background color of the card.
Defaults to the theme’s card color if not specified.
final
- border → ShadBorder?
-
The border surrounding the card.
Defaults to a border with the theme’s border color if not specified.
final
- canMerge → bool
-
no setter
- clipBehavior → Clip?
-
The clip behavior of the card, controlling how content is clipped.
Defaults to Clip.antiAlias if not specified.
final
- columnCrossAxisAlignment → CrossAxisAlignment?
-
The cross axis alignment of the card’s column (horizontal).
Defaults to CrossAxisAlignment.start if not specified.
final
- columnMainAxisAlignment → MainAxisAlignment?
-
The main axis alignment of the card’s column (vertical).
Defaults to MainAxisAlignment.start if not specified.
final
- columnMainAxisSize → MainAxisSize?
-
The main axis size of the card’s column.
Defaults to MainAxisSize.min if not specified.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double?
-
The explicit height of the card.
If null, the card sizes to its content or constraints.
final
- padding → EdgeInsetsGeometry?
-
The padding inside the card, surrounding all content.
Defaults to EdgeInsets.all(24) if not specified.
final
- radius → BorderRadius?
-
The border radius of the card’s corners.
Defaults to the theme’s radius if not specified.
final
- rowCrossAxisAlignment → CrossAxisAlignment?
-
The cross axis alignment of the card’s row (vertical).
Defaults to CrossAxisAlignment.start if not specified.
final
- rowMainAxisAlignment → MainAxisAlignment?
-
The main axis alignment of the card’s row (horizontal).
Defaults to MainAxisAlignment.spaceBetween if not specified.
final
- rowMainAxisSize → MainAxisSize?
-
The main axis size of the card’s row.
Defaults to MainAxisSize.min if not specified.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
shadows
→ List<
BoxShadow> ? -
The list of box shadows applied to the card for elevation.
Defaults to the theme’s card shadows if not specified.
final
- width → double?
-
The explicit width of the card.
If null, the card sizes to its content or constraints.
final
Methods
-
copyWith(
{EdgeInsetsGeometry? padding, Color? backgroundColor, BorderRadius? radius, ShadBorder? border, List< BoxShadow> ? shadows, double? width, double? height, MainAxisAlignment? rowMainAxisAlignment, CrossAxisAlignment? rowCrossAxisAlignment, MainAxisAlignment? columnMainAxisAlignment, CrossAxisAlignment? columnCrossAxisAlignment, MainAxisSize? rowMainAxisSize, MainAxisSize? columnMainAxisSize, Clip? clipBehavior}) → ShadCardTheme -
inherited
-
merge(
ShadCardTheme? other) → ShadCardTheme -
inherited
-
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.
inherited
Static Methods
-
lerp(
ShadCardTheme? a, ShadCardTheme? b, double t) → ShadCardTheme?