portalAppIconFor function

IconData portalAppIconFor(
  1. String slug
)

Best-effort icon per app. An unknown slug still lists and still installs.

Top-level so a PortalAppsSection.tileBuilder can reuse it rather than repeating the map.

Implementation

IconData portalAppIconFor(String slug) => switch (slug) {
      'portal-recipe' => Icons.restaurant_menu,
      'portal-gym' => Icons.fitness_center,
      'portal-shopping' => Icons.shopping_bag_outlined,
      'portal-lifestyle' => Icons.spa_outlined,
      'portal-finance' => Icons.account_balance_outlined,
      'portal-task' => Icons.task_alt,
      'portal-launcher' => Icons.home_outlined,
      _ => Icons.apps_outlined,
    };