VerticalTabs constructor
const
VerticalTabs({
- Key? key,
- required List<
Tab> tabs, - required List<
Widget> contents, - double tabsWidth = 200,
- double indicatorWidth = 3,
- IndicatorSide indicatorSide = IndicatorSide.end,
- int initialIndex = 0,
- TextDirection direction = TextDirection.ltr,
- Color indicatorColor = Colors.green,
- bool disabledChangePageFromContentView = false,
- Axis contentScrollAxis = Axis.horizontal,
- Color selectedTabBackgroundColor = const Color(0x1100ff00),
- Color tabBackgroundColor = const Color(0xfff8f8f8),
- TextStyle selectedTabTextStyle = const TextStyle(color: Colors.black),
- TextStyle tabTextStyle = const TextStyle(color: Colors.black38),
- Curve changePageCurve = Curves.easeInOut,
- Duration changePageDuration = const Duration(milliseconds: 300),
- Color tabsShadowColor = Colors.black54,
- double tabsElevation = 2.0,
- dynamic onSelect(
- int tabIndex
- 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);