BaseTabBar.search constructor
const
BaseTabBar.search({
- Key? key,
- List<
BottomNavigationBarItem> ? items, - ValueChanged<
int> ? onTap, - int currentIndex = 0,
- required CNSearchConfig searchConfig,
- double? iconSize,
- Color? backgroundColor,
- Color? activeColor,
- Color? cnTint,
- double? cnHeight,
- bool cnSplit = false,
- int cnRightCount = 1,
- bool cnShrinkCentered = true,
- double cnSplitSpacing = 8.0,
- double? cnBackgroundOpacity,
- bool useNativeCupertinoTabBar = true,
- BaseParam? baseParam,
Factory constructor for search-enabled tab bar
Implementation
const BaseTabBar.search({
Key? key,
List<BottomNavigationBarItem>? items,
ValueChanged<int>? onTap,
int currentIndex = 0,
required CNSearchConfig searchConfig,
double? iconSize,
Color? backgroundColor,
Color? activeColor,
Color? cnTint,
double? cnHeight,
bool cnSplit = false,
int cnRightCount = 1,
bool cnShrinkCentered = true,
double cnSplitSpacing = 8.0,
double? cnBackgroundOpacity,
bool useNativeCupertinoTabBar = true,
BaseParam? baseParam,
}) : this(
key: key,
items: items,
onTap: onTap,
currentIndex: currentIndex,
searchConfig: searchConfig,
iconSize: iconSize,
backgroundColor: backgroundColor,
activeColor: activeColor,
cnTint: cnTint,
cnHeight: cnHeight,
cnSplit: cnSplit,
cnRightCount: cnRightCount,
cnShrinkCentered: cnShrinkCentered,
cnSplitSpacing: cnSplitSpacing,
cnBackgroundOpacity: cnBackgroundOpacity,
useNativeCupertinoTabBar: useNativeCupertinoTabBar,
baseParam: baseParam,
);