SPPageMenu constructor

const SPPageMenu({
  1. Key? key,
  2. required TabController tabController,
  3. required List<String> tabs,
  4. List<Widget>? tabBodyList,
  5. dynamic onPageChange(
    1. int
    )?,
  6. Color? indicatorColor = Colors.orange,
  7. Color? selectColor = Colors.orange,
  8. Color? unselectColor = Colors.grey,
  9. TextStyle? unselectStyle,
  10. TextStyle? selectStyle,
  11. TabBarIndicatorSize? indicatorSize = TabBarIndicatorSize.label,
  12. double? indicatorHeight = 3,
  13. bool? isScrollable = true,
  14. double? tabHeight = 40,
  15. Color? color = Colors.white,
  16. double? height = 40,
  17. 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,
});