ModTabs constructor
const
ModTabs({
- Key? key,
- required List<
Widget> children, - required List<
Widget> tabs, - Color selectedTabColor = Colors.blue,
- Color unselectedTabColor = Colors.grey,
- TabBorderType borderType = TabBorderType.bottom,
- Color selectedBackgroundColor = Colors.transparent,
- TabAlignment alignment = TabAlignment.left,
- Color selectedTextColor = Colors.black,
- Color unselectedTextColor = Colors.grey,
- TabOrientation orientation = TabOrientation.horizontalTop,
- int initialIndex = 0,
- void onTabSelected()?,
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');