ConvexTabView constructor

const ConvexTabView({
  1. Key? key,
  2. required ConvexTabController controller,
  3. required List<ConvexBottomAppBarItem> items,
  4. required List<Widget> screens,
  5. Color? backgroundColor,
  6. Color? indicatorColor,
  7. Color? selectedColor,
  8. Color? unselectedColor,
  9. double? convexBottomAppHeight,
  10. NotchedShape? shape,
  11. Clip? clipBehavior,
  12. double? notchMargin,
  13. double? elevation,
  14. Color? shadowColor,
  15. EdgeInsetsGeometry? padding,
  16. Color? surfaceTintColor,
  17. Color? selectedTitleColor,
  18. 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',
      );