ModCard constructor

const ModCard({
  1. Key? key,
  2. required Widget header,
  3. List<Widget>? toolbar,
  4. required Widget content,
  5. Widget? footer,
  6. Color headerColor = Colors.transparent,
  7. Color contentColor = Colors.transparent,
  8. Color footerColor = Colors.transparent,
  9. bool isAccordion = false,
  10. bool showFooterWhenCollapsed = false,
  11. EdgeInsets margin = const EdgeInsets.all(8.0),
  12. EdgeInsets padding = const EdgeInsets.all(16.0),
  13. double borderRadius = 8.0,
  14. bool initiallyExpanded = false,
})

Implementation

const ModCard({
  super.key,
  required this.header,
  this.toolbar,
  required this.content,
  this.footer,
  this.headerColor = Colors.transparent,
  this.contentColor = Colors.transparent,
  this.footerColor = Colors.transparent,
  this.isAccordion = false,
  this.showFooterWhenCollapsed = false,
  this.margin = const EdgeInsets.all(8.0),
  this.padding = const EdgeInsets.all(16.0),
  this.borderRadius = 8.0,
  this.initiallyExpanded = false,
});