AppCard constructor
const
AppCard({
- Key? key,
- AppCardVariant variant = AppCardVariant.elevated,
- String? title,
- String? subtitle,
- Widget? leading,
- Widget? trailing,
- Widget? child,
- List<
Widget> ? actions, - VoidCallback? onTap,
- VoidCallback? onLongPress,
- EdgeInsets? padding,
- EdgeInsets? margin,
- double? elevation,
- Color? backgroundColor,
- double? borderRadius,
- Color? borderColor,
- double? borderWidth,
- TextStyle? titleStyle,
- TextStyle? subtitleStyle,
- EdgeInsetsGeometry? headerPadding,
- EdgeInsetsGeometry? actionsPadding,
- Color? shadowColor,
- MainAxisAlignment? actionsAlignment,
- double? headerSpacing,
Creates a card.
Implementation
const AppCard({
super.key,
this.variant = AppCardVariant.elevated,
this.title,
this.subtitle,
this.leading,
this.trailing,
this.child,
this.actions,
this.onTap,
this.onLongPress,
this.padding,
this.margin,
this.elevation,
this.backgroundColor,
this.borderRadius,
this.borderColor,
this.borderWidth,
this.titleStyle,
this.subtitleStyle,
this.headerPadding,
this.actionsPadding,
this.shadowColor,
this.actionsAlignment,
this.headerSpacing,
});