createHeaderWithActionsCard static method

DynamicCardConfig createHeaderWithActionsCard({
  1. required String title,
  2. required List<CardAction> actions,
  3. required List<CardContentItem> content,
  4. TextStyle? titleStyle,
  5. double elevation = 1.0,
  6. Color backgroundColor = Colors.white,
  7. EdgeInsets? padding,
  8. EdgeInsets? margin,
})

Creates a card with actions in the header

Implementation

static DynamicCardConfig createHeaderWithActionsCard({
  required String title,
  required List<CardAction> actions,
  required List<CardContentItem> content,
  TextStyle? titleStyle,
  double elevation = 1.0,
  Color backgroundColor = Colors.white,
  EdgeInsets? padding,
  EdgeInsets? margin,
}) {
  return DynamicCardConfig(
    title: title,
    titleStyle: titleStyle,
    actions: actions,
    content: content,
    elevation: elevation,
    backgroundColor: backgroundColor,
    padding: padding,
    margin: margin,
    layout: CardLayout.headerWithActions,
  );
}