MotionTabBar constructor

MotionTabBar({
  1. TextStyle? textStyle,
  2. Color? tabIconColor = Colors.black,
  3. double? tabIconSize = 24,
  4. Color? tabIconSelectedColor = Colors.white,
  5. double? tabIconSelectedSize = 24,
  6. Color? tabSelectedColor = Colors.black,
  7. Color? tabBarColor = Colors.white,
  8. double? tabBarHeight = 65,
  9. double? tabSize = 60,
  10. Function? onTabItemSelected,
  11. required String initialSelectedTab,
  12. required List<String?> labels,
  13. List<IconData>? icons,
  14. bool useSafeArea = true,
  15. List<Widget?>? badges,
  16. MotionTabBarController? controller,
})

Implementation

MotionTabBar({
  this.textStyle,
  this.tabIconColor = Colors.black,
  this.tabIconSize = 24,
  this.tabIconSelectedColor = Colors.white,
  this.tabIconSelectedSize = 24,
  this.tabSelectedColor = Colors.black,
  this.tabBarColor = Colors.white,
  this.tabBarHeight = 65,
  this.tabSize = 60,
  this.onTabItemSelected,
  required this.initialSelectedTab,
  required this.labels,
  this.icons,
  this.useSafeArea = true,
  this.badges,
  this.controller,
})  : assert(labels.contains(initialSelectedTab)),
      assert(icons != null && icons.length == labels.length),
      assert((badges != null && badges.length > 0) ? badges.length == labels.length : true);