VerticalTabs constructor

const VerticalTabs({
  1. Key? key,
  2. required List<Tab> tabs,
  3. required List<Widget> contents,
  4. double tabsWidth = 200,
  5. double indicatorWidth = 3,
  6. IndicatorSide indicatorSide = IndicatorSide.end,
  7. int initialIndex = 0,
  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 tabBackgroundColor = const Color(0xfff8f8f8),
  14. TextStyle selectedTabTextStyle = const TextStyle(color: Colors.black),
  15. TextStyle tabTextStyle = const TextStyle(color: Colors.black38),
  16. Curve changePageCurve = Curves.easeInOut,
  17. Duration changePageDuration = const Duration(milliseconds: 300),
  18. Color tabsShadowColor = Colors.black54,
  19. double tabsElevation = 2.0,
  20. dynamic onSelect(
    1. int tabIndex
    )?,
  21. Color? backgroundColor,
})

Implementation

const VerticalTabs(
    {Key? key,
    required this.tabs,
    required this.contents,
    this.tabsWidth = 200,
    this.indicatorWidth = 3,
    this.indicatorSide = IndicatorSide.end,
    this.initialIndex = 0,
    this.direction = TextDirection.ltr,
    this.indicatorColor = Colors.green,
    this.disabledChangePageFromContentView = false,
    this.contentScrollAxis = Axis.horizontal,
    this.selectedTabBackgroundColor = const Color(0x1100ff00),
    this.tabBackgroundColor = const Color(0xfff8f8f8),
    this.selectedTabTextStyle = const TextStyle(color: Colors.black),
    this.tabTextStyle = const TextStyle(color: Colors.black38),
    this.changePageCurve = Curves.easeInOut,
    this.changePageDuration = const Duration(milliseconds: 300),
    this.tabsShadowColor = Colors.black54,
    this.tabsElevation = 2.0,
    this.onSelect,
    this.backgroundColor})
    : assert(tabs.length == contents.length),
      super(key: key);