ConvexTabView constructor
const
ConvexTabView({
- Key? key,
- required ConvexTabController controller,
- required List<
ConvexBottomAppBarItem> items, - required List<
Widget> screens, - Color? backgroundColor,
- Color? indicatorColor,
- Color? selectedColor,
- Color? unselectedColor,
- double? convexBottomAppHeight,
- NotchedShape? shape,
- Clip? clipBehavior,
- double? notchMargin,
- double? elevation,
- Color? shadowColor,
- EdgeInsetsGeometry? padding,
- Color? surfaceTintColor,
- Color? selectedTitleColor,
- Color? unSelectedTitleColor,
Implementation
const ConvexTabView({
super.key,
required ConvexTabController controller,
required List<ConvexBottomAppBarItem> items,
required List<Widget> screens,
Color? backgroundColor,
Color? indicatorColor,
Color? selectedColor,
Color? unselectedColor,
double? convexBottomAppHeight,
NotchedShape? shape,
Clip? clipBehavior,
double? notchMargin,
double? elevation,
Color? shadowColor,
EdgeInsetsGeometry? padding,
Color? surfaceTintColor,
Color? selectedTitleColor,
Color? unSelectedTitleColor,
}) : _controller = controller,
_items = items,
_screens = screens,
_backgroundColor = backgroundColor,
_indicatorColor = indicatorColor,
_selectedColor = selectedColor,
_unselectedColor = unselectedColor,
_convexBottomAppHeight = convexBottomAppHeight,
_shape = shape,
_clipBehavior = clipBehavior ?? Clip.none,
_notchMargin = notchMargin ?? 5.0,
_elevation = elevation,
_shadowColor = shadowColor,
_padding = padding,
_surfaceTintColor = surfaceTintColor,
_selectedTitleColor = selectedTitleColor,
_unSelectedTitleColor = unSelectedTitleColor,
assert(
items.length == screens.length,
'\n\n"items" length must be the same with "children"\n\n',
);