CNTabScaffold constructor

const CNTabScaffold({
  1. Key? key,
  2. required List<CNTabBarItem> items,
  3. required int currentIndex,
  4. required ValueChanged<int> onTap,
  5. required Widget body,
  6. Color? tint,
  7. Color? backgroundColor,
  8. bool sidebarOnWideScreens = false,
  9. double sidebarMinWidth = 600,
  10. CNTabPlacement? placement,
  11. WidgetBuilder? tabBarBuilder,
})

Creates an adaptive tab scaffold.

Implementation

const CNTabScaffold({
  super.key,
  required this.items,
  required this.currentIndex,
  required this.onTap,
  required this.body,
  this.tint,
  this.backgroundColor,
  this.sidebarOnWideScreens = false,
  this.sidebarMinWidth = 600,
  this.placement,
  this.tabBarBuilder,
});