FLUTTER ECOSYSTEM

mvvm

一个 Flutter MVVM。它使用基于属性的数据绑定,在 ViewModel 和 View 之间建立连接,并通过 ViewModel 驱动 View 的变化。

最新版本
0.5.2
近 30 天下载
48
喜欢数
38
Pub 分数
150

Package Overview

基于插件公开资料生成的选型评价,仅供参考。

插件概览

mvvm 包是 Model-View-ViewModel(MVVM)架构模式的 Flutter 实现,支持 ViewModel 和 View 之间的基于属性的数据绑定。它通过在 ViewModel 属性变化时自动更新 UI 来简化状态管理,减少样板代码。该包支持跨平台开发,涵盖 Android、iOS、Web、macOS、Windows 和 Linux,非常适合可扩展且易于维护的应用程序。采用清晰的关注点分离设计,提升了可测试性和开发效率。

适合场景
  • Building scalable Flutter apps
  • Implementing reactive UIs
  • Separating business logic from presentation
  • Facilitating unit testing
  • Managing complex state flows
  • Enabling cross-platform consistency
主要特点
  • Property-based data binding
  • Automatic UI updates
  • Clean separation of View and ViewModel
  • Cross-platform support
  • Minimal boilerplate
  • Testable architecture
适合对象
  • Developers using MVVM pattern
  • Teams prioritizing maintainable code
  • Projects requiring reactive UIs
  • Large-scale Flutter applications
  • Apps needing strong testability
使用建议
  • Requires understanding of MVVM principles
  • May add complexity for simple apps
  • Limited documentation compared to mainstream packages
  • Integration with other state management solutions may need care
支持平台AndroidiOSWebmacOSWindowsLinux

安装插件

flutter pub add mvvm

所属分类

源码仓库

关联项目

暂无相关数据。