EcpNavBarView constructor

const EcpNavBarView({
  1. Key? key,
  2. required List<BottomNavigationBarItem> navBars,
  3. required List<Widget> pages,
  4. EcpNavBarViewController? controller,
  5. int initPage = 0,
  6. int? shrinkIndex,
  7. BottomNavigationBarItem? shrinkBar,
  8. bool pageScrollable = true,
  9. PageChanged? onPageChanged,
  10. PageChanged? onRepeatClick,
  11. int? cachedExtend,
  12. Color? bottomNavBarBgColor,
})

Implementation

const EcpNavBarView({
  super.key,
  required this.navBars,
  required this.pages,
  this.controller,
  this.initPage = 0,
  this.shrinkIndex,
  this.shrinkBar,
  this.pageScrollable = true,
  this.onPageChanged,
  this.onRepeatClick,
  this.cachedExtend,
  this.bottomNavBarBgColor,
}) : assert(navBars.length == pages.length);