portal_platform

Shared app infrastructure for the Portal fleet: auth, session, API client, config, deep-link routing, in-app updates, observability (Sentry) and an offline-first sync layer (local cache first, background sync, queued mutations replayed on reconnect).

import 'package:portal_platform/portal_platform.dart';

final ok = await PortalBootstrap.init(sourceName: 'portal-gym');
runApp(GetMaterialApp(initialRoute: PortalBootstrap.startRoute, ...));

Modules: auth/, session/, services/ (ApiClient), config/, routing/, sync/ (SyncableRepository), storage/, update/, observability/, settings/, media/, widgets/.

Opinionated: built on GetX, expects a Portal-style REST server. Extracted from the Portal apps rather than designed as a general framework — useful as a reference or a starting point, less so as a drop-in.

Libraries

portal_api_paths
Public entry for module URL helpers (avoids relying on the main barrel).
portal_app_version
App version widgets for Portal apps.
Deep-link types and registration for Portal apps.
portal_navigation
App navigation facade for Portal apps (deep links, session redirect).
portal_platform
Shared auth, API client, session management, config, deep-link routing, and offline-first sync for Portal apps.