套件概覽
適用於 Directus 的非官方 Dart SDK 使 Flutter 應用能夠與 Directus 的 REST API 互動,並順暢處理驗證。它提供了一種結構化的方式,透過類型安全的介面來管理資料、使用者和權限。專為使用 Flutter 的開發者設計,支援所有主要平台,包括 Android、iOS、Web、macOS、Windows 和 Linux。該 SDK 簡化了與 Directus 作為無頭 CMS 或後端服務的整合,減少常見操作(如查詢集合、上傳檔案和管理會話)的重複程式碼。
適用情境
- Integrating Flutter apps with Directus as a backend
- Managing content via a headless CMS
- User authentication and session handling
- Real-time data synchronization
- File uploads and management
- Building admin dashboards
主要特色
- REST API client for Directus
- Authentication and token management
- Type-safe data models
- Cross-platform support
- Easy setup with Flutter
- Support for file operations
適合對象
- Flutter 開發人員使用 Directus 建構應用程式
- 使用 Directus 作為後端的團隊
- 需要內容管理的專案
- 需要安全用戶驗證的應用程式
- 尋求輕量級後端整合的開發者
使用建議
- Unofficial SDK – not maintained by Directus team
- Limited to REST API (no real-time subscriptions)
- Requires manual handling of error cases
- Depends on external package updates
- No built-in caching or offline support