SPPageMenu constructor
const
SPPageMenu({
- Key? key,
- required TabController tabController,
- required List<
String> tabs, - List<
Widget> ? tabBodyList, - dynamic onPageChange()?,
- Color? indicatorColor = Colors.orange,
- Color? selectColor = Colors.orange,
- Color? unselectColor = Colors.grey,
- TextStyle? unselectStyle,
- TextStyle? selectStyle,
- TabBarIndicatorSize? indicatorSize = TabBarIndicatorSize.label,
- double? indicatorHeight = 3,
- bool? isScrollable = true,
- double? tabHeight = 40,
- Color? color = Colors.white,
- double? height = 40,
- Decoration? indicator,
Implementation
const SPPageMenu({
super.key,
required this.tabController,
required this.tabs,
this.tabBodyList,
this.onPageChange,
this.indicatorColor = Colors.orange,
this.selectColor = Colors.orange,
this.unselectColor = Colors.grey,
this.unselectStyle,
this.selectStyle,
this.indicatorSize = TabBarIndicatorSize.label,
this.indicatorHeight = 3,
this.isScrollable = true,
this.tabHeight = 40,
this.color = Colors.white,
this.height = 40,
this.indicator,
});