Flutter Multiplatform Client Architecture (pkg/flutterclient)
When a panel runs with .Engine(filament.EngineFlutter), it powers native mobile and desktop clients via a unified JSON REST API.
REST API Endpoints#
| Endpoint | Method | Description |
|---|---|---|
/admin/api/schema | GET | Complete metadata: brand, theme colors, navigation items, resources, locales, account placement |
/admin/api/resources/{slug} | GET | List records with search, pagination, sort, and filters |
/admin/api/resources/{slug} | POST | Create a new record |
/admin/api/resources/{slug}/{id} | GET | Retrieve single record details |
/admin/api/resources/{slug}/{id} | PUT | Update record |
/admin/api/resources/{slug}/{id} | DELETE | Delete record |
/admin/api/resources/{slug}/restore | POST | Restore soft-deleted record |
/admin/api/resources/{slug}/force-delete | POST | Permanently delete record |
/admin/api/resources/{slug}/export | GET | Stream CSV data export |
/admin/api/locale/switch?lang={code} | POST | Switch session locale (returns directionality, dictionary, flag) |
/admin/api/translations?locale={code} | GET | Fetch translation dictionary |
/admin/api/version | GET | Version and BuildID check |
/admin/api/tenants | GET | List available tenant workspaces |
Flutter Client Key Architecture#
ResponsiveLayout:- Screen width < 640px: Material 3 Bottom Navigation bar, full-screen card feeds with zero horizontal scroll, and a circular FAB modal trigger for pagination.
- Screen width >= 1024px: High-density data grid tables, column resize/sort/toggle handles, and topbar navigation.
- Account Entrypoint Exclusivity:
header: Circular avatar button in top header opens a floating bottom sheet (AccountModalSheet).bottom_bar: Dedicated tab in bottom navigation opens a fullAccountHubscreen.
- Directionality Mirroring (Zero External Packages):
- Root application wraps tree with
Directionality(textDirection: isRTL ? TextDirection.rtl : TextDirection.ltr). - Layout automatically mirrors AppBars, icons, grids, padding, and dialogs when switching between English and Arabic.
- Root application wraps tree with