MyHorizontalTabStackView constructor

MyHorizontalTabStackView({
  1. Key? key,
  2. required List<Tab> tabs,
  3. required List<Widget> contents,
  4. double tabsHeight = 80,
  5. double tabsWidth = 200,
  6. Function? onSelectIdx,
  7. double indicatorWidth = 0.0,
  8. TextDirection direction = TextDirection.ltr,
  9. Color indicatorColor = Colors.transparent,
  10. bool disabledChangePageFromContentView = false,
  11. Axis contentScrollAxis = Axis.horizontal,
  12. Color selectedTabBackgroundColor = UIData.white,
  13. Color unselectedTabBackgroundColor = UIData.white,
  14. Color dividerColor = const Color(0xffe5e5e5),
  15. Curve changePageCurve = Curves.easeInOut,
  16. Duration changePageDuration = const Duration(milliseconds: 300),
  17. Color tabsShadowColor = Colors.black54,
  18. int initialIdx = 0,
  19. double tabsElevation = 1.0,
})

Implementation

MyHorizontalTabStackView(
    {this.key,
    required this.tabs,
    required this.contents,
    this.tabsHeight = 80,
    this.tabsWidth = 200,
    this.onSelectIdx,
    this.indicatorWidth = 0.0,
    this.direction = TextDirection.ltr,
    this.indicatorColor = Colors.transparent,
    this.disabledChangePageFromContentView = false,
    this.contentScrollAxis = Axis.horizontal,
    this.selectedTabBackgroundColor = UIData.white,
    this.unselectedTabBackgroundColor = UIData.white,
    this.dividerColor = const Color(0xffe5e5e5),
    this.changePageCurve = Curves.easeInOut,
    this.changePageDuration = const Duration(milliseconds: 300),
    this.tabsShadowColor = Colors.black54,
    this.initialIdx = 0,
    this.tabsElevation = 1.0})
    : assert(
          tabs != null && contents != null && tabs.length == contents.length),
      super(key: key);