MyVerticalTabs constructor

MyVerticalTabs({
  1. Key? key,
  2. required List<Tab> tabs,
  3. required List<Widget> contents,
  4. double tabsWidth = 200,
  5. double itemExtent = 50,
  6. Function? onSelectIdx,
  7. double indicatorWidth = 3,
  8. TextDirection direction = TextDirection.ltr,
  9. Color indicatorColor = Colors.green,
  10. bool disabledChangePageFromContentView = false,
  11. Axis contentScrollAxis = Axis.horizontal,
  12. Color selectedTabBackgroundColor = const Color(0x1100ff00),
  13. Color unselectedTabBackgroundColor = const Color(0xfff8f8f8),
  14. Color dividerColor = const Color(0xffe5e5e5),
  15. Curve changePageCurve = Curves.easeInOut,
  16. Duration changePageDuration = const Duration(milliseconds: 300),
  17. Color tabsShadowColor = Colors.black54,
  18. double tabsElevation = 2.0,
  19. 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);