GetxBottomBarView constructor

GetxBottomBarView({
  1. Key? key,
  2. required List<GetPage> getPages,
  3. required List<String> routes,
  4. required List<GetBottomBarItem> bottomBar,
  5. int navigationKey = 1,
  6. AppBar? appBar,
  7. Transition? defaultTransition,
  8. Curve curve = Curves.easeOutQuint,
  9. Duration duration = const Duration(milliseconds: 750),
  10. num? height,
  11. Color? backgroundColor,
  12. bool showActiveBackgroundColor = true,
  13. EdgeInsets itemPadding = const EdgeInsets.symmetric(vertical: 10, horizontal: 16),
  14. TextStyle textStyle = const TextStyle(fontSize: 14, fontWeight: FontWeight.w500),
})

Don't Pass Route of Same Page, Ex: (Don't pass Routes.Home from Home Page) in routes list

Implementation

GetxBottomBarView({
  Key? key,
  required this.getPages,
  required this.routes,
  required this.bottomBar,
  this.navigationKey = 1,
  this.appBar,
  this.defaultTransition,
  this.curve = Curves.easeOutQuint,
  this.duration = const Duration(milliseconds: 750),
  this.height,
  this.backgroundColor,
  this.showActiveBackgroundColor = true,
  this.itemPadding = const EdgeInsets.symmetric(vertical: 10, horizontal: 16),
  this.textStyle = const TextStyle(fontSize: 14, fontWeight: FontWeight.w500),
}) : super(key: key);