toPersistentTabConfig method

PersistentTabConfig toPersistentTabConfig(
  1. BuildContext context
)

Implementation

PersistentTabConfig toPersistentTabConfig(BuildContext context) {
  final theme = context.watch<TThemeManager>().state;
  return PersistentTabConfig(
    screen: screen,
    item: ItemConfig(
      icon: activeIcon,
      inactiveIcon: inactiveIcon ?? activeIcon,
      title: title,
      activeForegroundColor: activeForegroundColor ?? theme.primary,
      inactiveForegroundColor:
          inactiveForegroundColor ?? theme.mutedForeground,
    ),
  );
}