FLUTTER ECOSYSTEM

get

使用 GetX 轻松实现无需上下文即可打开屏幕、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

所属分类

源码仓库

关联项目