Flutter GetX - twototwoto/WYW_Blog GitHub Wiki
使用 GetX 注意事项
Get.arguments
注意需要使用 Get.arguments,而不是Get.arguments()。
否则会出现的一些报错。如
The following NoSuchMethodError was thrown building Builder(dirty):
Class 'String' has no instance method 'call'.
Receiver: "argumentsValue"
Tried calling: call()
触发组件更新的方式
组件对应的Rx 数据更新时除了直接修改 xxx.value,还可通过触发相应 Rx 类型数据的 update,refresh 方式触发数据更新,组件会响应式同步更新。
GetX 参考学习资源
- GetX 修改主题:Flutter dynamic themes in 3 lines!
- GetX 导航相关视频:Complete GetX™ Navigation
- GetX 状态管理基础
- GetX 的多语言、存储、主题切换
- ToDo App 使用 firebase 授权登录,查看数据库信息。
- ToDoApp 注册、登录、切换到首页等逻辑
- The Flutter GetX™ Ecosystem ~ State Management
- The Flutter GetX Ecosystem ~ Dependency Injection
- Flutter 一行行写一个 Counter:GetX, the all-in-one Flutter package
- Firebase 授权文章
- 国内文章