buildCupertinoTabBar method
Builds the raw CupertinoTabBar without Liquid Glass effects Used by BaseTabScaffold which needs the actual CupertinoTabBar instance
Implementation
CupertinoTabBar buildCupertinoTabBar(BuildContext context) {
final ValueChanged<int>? onTap = valueOf('onTap', this.onTap);
// Enhanced onTap with haptic feedback
ValueChanged<int>? enhancedOnTap;
if (onTap != null) {
enhancedOnTap = (int index) {
if (valueOf('hapticFeedback', hapticFeedback) && valueOf('adaptiveInteraction', adaptiveInteraction)) {
HapticFeedback.selectionClick();
}
onTap(index);
};
}
return CupertinoTabBar(
items: valueOf('items', items),
onTap: enhancedOnTap,
currentIndex: valueOf('currentIndex', currentIndex),
backgroundColor: valueOf('backgroundColor', backgroundColor),
activeColor: valueOf('activeColor', activeColor),
inactiveColor: valueOf('inactiveColor', inactiveColor),
iconSize: valueOf('iconSize', iconSize) ?? 30.0,
border: valueOf('border', border),
);
}