ModTabs constructor

const ModTabs({
  1. Key? key,
  2. required List<Widget> children,
  3. required List<Widget> tabs,
  4. Color selectedTabColor = Colors.blue,
  5. Color unselectedTabColor = Colors.grey,
  6. TabBorderType borderType = TabBorderType.bottom,
  7. Color selectedBackgroundColor = Colors.transparent,
  8. TabAlignment alignment = TabAlignment.left,
  9. Color selectedTextColor = Colors.black,
  10. Color unselectedTextColor = Colors.grey,
  11. TabOrientation orientation = TabOrientation.horizontalTop,
  12. int initialIndex = 0,
  13. void onTabSelected(
    1. int
    )?,
})

Implementation

const ModTabs({
  super.key,
  required this.children,
  required this.tabs,
  this.selectedTabColor = Colors.blue,
  this.unselectedTabColor = Colors.grey,
  this.borderType = TabBorderType.bottom,
  this.selectedBackgroundColor = Colors.transparent,
  this.alignment = TabAlignment.left,
  this.selectedTextColor = Colors.black,
  this.unselectedTextColor = Colors.grey,
  this.orientation = TabOrientation.horizontalTop,
  this.initialIndex = 0,
  this.onTabSelected,
}) : assert(children.length == tabs.length,
          'Children and tabs must have the same length');