buildByCupertino method
build on cupertino mode (Flutter implementation)
Implementation
@override
Widget buildByCupertino(BuildContext context) {
// For Cupertino, we need to return the tab bar only since CupertinoTabScaffold
// handles the entire scaffold structure
Widget tabBar = CupertinoTabBar(
items: valueOf('items', items),
onTap: _handleTap,
currentIndex: valueOf('currentIndex', currentIndex),
backgroundColor: valueOf('backgroundColor', backgroundColor),
activeColor: valueOf('activeColor', activeColor) ??
valueOf('selectedItemColor', selectedItemColor),
inactiveColor: valueOf('inactiveColor', inactiveColor) ??
valueOf('unselectedItemColor', unselectedItemColor),
iconSize: valueOf('iconSize', iconSize),
border: valueOf('border', border),
height: valueOf('height', height),
);
if (valueOf('enableLiquidGlass', enableLiquidGlass)) {
return _wrapWithLiquidGlass(context, tabBar);
}
return tabBar;
}