KntBottomNavScaffold constructor
const
KntBottomNavScaffold({
- Key? key,
- required ValueNotifier<
int> onTabChanged, - PreferredSizeWidget? appBar,
- List<
Widget> tabs = const [], - List<
TabIcon> icons = const [], - Widget? background,
- double? iconSize,
- double? iconSpacing,
- Color? selectedItemColor,
- Color? unselectedItemColor,
- Widget? floatingActionButton,
- FloatingActionButtonLocation? floatingActionButtonLocation,
- FloatingActionButtonAnimator? floatingActionButtonAnimator,
- bool lightTheme = true,
- 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');