KntBottomNavScaffold constructor

const KntBottomNavScaffold({
  1. Key? key,
  2. required ValueNotifier<int> onTabChanged,
  3. PreferredSizeWidget? appBar,
  4. List<Widget> tabs = const [],
  5. List<TabIcon> icons = const [],
  6. Widget? background,
  7. double? iconSize,
  8. double? iconSpacing,
  9. Color? selectedItemColor,
  10. Color? unselectedItemColor,
  11. Widget? floatingActionButton,
  12. FloatingActionButtonLocation? floatingActionButtonLocation,
  13. FloatingActionButtonAnimator? floatingActionButtonAnimator,
  14. Color? navColor,
  15. List<BoxShadow>? navShadow,
  16. BorderRadius? navBorderRadius,
  17. bool lightTheme = true,
  18. bool showLabel = true,
})

Implementation

const KntBottomNavScaffold({
  super.key,
  required this.onTabChanged,
  this.appBar,
  this.tabs = const [],
  this.icons = const [],
  this.background,
  this.iconSize,
  this.iconSpacing,
  this.selectedItemColor,
  this.unselectedItemColor,
  this.floatingActionButton,
  this.floatingActionButtonLocation,
  this.floatingActionButtonAnimator,
  this.navColor,
  this.navShadow,
  this.navBorderRadius,
  this.lightTheme = true,
  this.showLabel = true,
})  : assert(
        tabs.length == icons.length,
        'Length of [tabs] and [icons] must be matched',
      ),
      assert(tabs.length > 0, 'Must have 1 tab at least');