MotionTabBar constructor
MotionTabBar({
- TextStyle? textStyle,
- Color? tabIconColor = Colors.black,
- double? tabIconSize = 24,
- Color? tabIconSelectedColor = Colors.white,
- double? tabIconSelectedSize = 24,
- Color? tabSelectedColor = Colors.black,
- Color? tabBarColor = Colors.white,
- double? tabBarHeight = 65,
- double? tabSize = 60,
- Function? onTabItemSelected,
- required String initialSelectedTab,
- required List<
String?> labels, - List<
IconData> ? icons, - bool useSafeArea = true,
- List<
Widget?> ? badges, - 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);