createTabbedCard static method

DynamicCardConfig createTabbedCard({
  1. required String title,
  2. required List<CardTab> tabs,
  3. double? tabContentHeight,
  4. Color? tabLabelColor,
  5. Color? tabUnselectedLabelColor,
  6. Color? tabIndicatorColor,
  7. TextStyle? titleStyle,
  8. double elevation = 1.0,
  9. Color backgroundColor = Colors.white,
  10. EdgeInsets? padding,
  11. EdgeInsets? margin,
})

Creates a card with tabs

Implementation

static DynamicCardConfig createTabbedCard({
  required String title,
  required List<CardTab> tabs,
  double? tabContentHeight,
  Color? tabLabelColor,
  Color? tabUnselectedLabelColor,
  Color? tabIndicatorColor,
  TextStyle? titleStyle,
  double elevation = 1.0,
  Color backgroundColor = Colors.white,
  EdgeInsets? padding,
  EdgeInsets? margin,
}) {
  return DynamicCardConfig(
    title: title,
    titleStyle: titleStyle,
    tabs: tabs,
    tabContentHeight: tabContentHeight,
    tabLabelColor: tabLabelColor,
    tabUnselectedLabelColor: tabUnselectedLabelColor,
    tabIndicatorColor: tabIndicatorColor,
    elevation: elevation,
    backgroundColor: backgroundColor,
    padding: padding,
    margin: margin,
    layout: CardLayout.tabbed,
  );
}