FLUTTER ECOSYSTEM

get

使用 GetX 可輕鬆在無 context 的情況下開啟螢幕、snackbars、對話框,輕鬆管理狀態並注入相依性。

最新版本
4.7.3
近 30 天下載
60.7萬
喜歡數
1.6萬
Pub 分數
150

Package Overview

根據套件公開資料產生的選型評估,僅供參考。

套件概覽

GetX 是一個 Flutter 框架套件,可簡化導航、狀態管理與依賴注入,無需使用上下文。它允許從應用程式中的任何位置直接開啟螢幕、訊息列與對話方塊。GetX 提供輕量級的反應式狀態管理與高效能的依賴注入,減少重複程式碼。支援所有主要平台,可簡化可擴展且可維護應用程式的開發。

適用情境
  • Fast navigation between screens
  • Context-free dialog and snackbar display
  • Reactive state management
  • Dependency injection in large apps
  • Simplified app architecture
  • Rapid prototyping
主要特色
  • No context required for navigation
  • Built-in dependency injection
  • Reactive state management
  • Lightweight and fast
  • Supports all Flutter platforms
  • Minimal boilerplate
適合對象
  • Developers seeking quick setup
  • Apps needing frequent navigation
  • Projects with complex state logic
  • Teams prioritizing development speed
  • Large-scale applications with dependency needs
  • Prototypes and MVPs
使用建議
  • May increase bundle size slightly
  • Learning curve for newcomers to reactive patterns
  • Less suitable for very simple apps where minimalism is key
  • Potential over-reliance on global state
  • Not ideal for apps strictly following traditional MVC patterns
  • Limited community tutorials compared to alternatives
支援平台AndroidiOSWebmacOSWindowsLinux

安裝套件

flutter pub add get

所屬分類

原始碼儲存庫

相關專案