MyVerticalTabs constructor
MyVerticalTabs({
- Key? key,
- required List<
Tab> tabs, - required List<
Widget> contents, - double tabsWidth = 200,
- double itemExtent = 50,
- Function? onSelectIdx,
- double indicatorWidth = 3,
- TextDirection direction = TextDirection.ltr,
- Color indicatorColor = Colors.green,
- bool disabledChangePageFromContentView = false,
- Axis contentScrollAxis = Axis.horizontal,
- Color selectedTabBackgroundColor = const Color(0x1100ff00),
- Color unselectedTabBackgroundColor = const Color(0xfff8f8f8),
- Color dividerColor = const Color(0xffe5e5e5),
- Curve changePageCurve = Curves.easeInOut,
- Duration changePageDuration = const Duration(milliseconds: 300),
- Color tabsShadowColor = Colors.black54,
- double tabsElevation = 2.0,
- Color? bgColor,
Implementation
MyVerticalTabs(
{this.key,
required this.tabs,
required this.contents,
this.tabsWidth = 200,
this.itemExtent = 50,
this.onSelectIdx,
this.indicatorWidth = 3,
this.direction = TextDirection.ltr,
this.indicatorColor = Colors.green,
this.disabledChangePageFromContentView = false,
this.contentScrollAxis = Axis.horizontal,
this.selectedTabBackgroundColor = const Color(0x1100ff00),
this.unselectedTabBackgroundColor = const Color(0xfff8f8f8),
this.dividerColor = const Color(0xffe5e5e5),
this.changePageCurve = Curves.easeInOut,
this.changePageDuration = const Duration(milliseconds: 300),
this.tabsShadowColor = Colors.black54,
this.tabsElevation = 2.0,
this.bgColor})
: assert(
tabs != null && contents != null && tabs.length == contents.length),
super(key: key);