createCupertinoWidget method

  1. @override
CupertinoTabBar createCupertinoWidget(
  1. BuildContext context
)
override

Implementation

@override
CupertinoTabBar createCupertinoWidget(BuildContext context) {
  final data = cupertino?.call(context, platform(context));

  return CupertinoTabBar(
    items: data?.items ?? items ?? const <BottomNavigationBarItem>[],
    activeColor: data?.activeColor,
    backgroundColor: data?.backgroundColor ?? backgroundColor,
    currentIndex: data?.currentIndex ?? currentIndex ?? 0,
    iconSize: data?.iconSize ?? 30.0,
    inactiveColor: data?.inactiveColor ?? _kDefaultTabBarInactiveColor,
    key: data?.widgetKey ?? widgetKey,
    onTap: data?.itemChanged ?? itemChanged,
    border: data?.border ??
        const Border(
          top: BorderSide(
            color: _kDefaultTabBarBorderColor,
            width: 0.0, // One physical pixel.
            style: BorderStyle.solid,
          ),
        ),
    height: data?.height ?? height ?? _kTabBarHeight,
  );
}