flutter_vue2 0.1.0 copy "flutter_vue2: ^0.1.0" to clipboard
flutter_vue2: ^0.1.0 copied to clipboard

A Flutter library that provides Vue2-like syntax for reactive component development with type safety and complex object support.

Changelog #

0.2.0 - 2025-09-25 #

Added #

  • 🚀 重大更新: 完整的泛型和复杂类型支持
  • 🛡️ 类型安全: 新增类型检查和类型兼容性验证
  • 🏗️ 响应式对象: 新增Reactive类和ReactiveFactory
  • 深度访问: 支持对象属性的深度访问和更新
  • 🔍 安全访问: 新增getSafe和getOrDefault方法
  • 📊 类型信息: 支持运行时类型信息查询
  • 🎯 增强MethodContext: 更多类型安全的数据访问方法

Enhanced #

  • VueData: 完全重写,支持泛型和类型验证
  • MethodContext: 新增多种类型安全的访问方法
  • 错误处理: 新增VueDataException异常类
  • 文档: 完善的复杂类型使用文档和示例

Features #

  • 类型安全: 完整的泛型支持和运行时类型检查
  • 复杂对象: 支持自定义类、嵌套对象和集合类型
  • 响应式包装: Reactive
  • 深度响应式: 支持Map和List的深度属性访问
  • 类型兼容: 智能的类型兼容性检查(如int可赋值给double)

0.1.0 - 2025-09-25 #

Added #

  • 🎉 初始版本发布
  • ✨ 实现Vue2风格的data响应式数据管理
  • ✨ 实现Vue2风格的methods方法管理
  • ✨ 实现Vue2风格的props属性传递和验证
  • 🏗️ 提供VueComponent基类,支持继承方式创建组件
  • 🏗️ 提供Vue.component工厂函数,支持函数式创建组件
  • 📚 完善的文档和示例代码
  • 🔄 自动响应式UI更新机制
  • 🛡️ Props类型检查和验证功能
  • 🎯 MethodContext提供方法执行上下文

Features #

  • Data管理: 响应式数据存储,自动触发UI更新
  • Methods管理: 统一的方法注册和调用机制
  • Props管理: 类型安全的属性传递和验证
  • 双重语法: 支持继承和函数式两种组件创建方式
  • TypeScript友好: 完整的泛型支持
1
likes
155
points
33
downloads

Documentation

Documentation
API reference

Publisher

unverified uploader

Weekly Downloads

A Flutter library that provides Vue2-like syntax for reactive component development with type safety and complex object support.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_vue2