加载中...

随笔分类 -  水车-Riverpod

摘要:在 View (UI 页面) 中的使用方式 在 UI 中,你可以直接使用 ref.watch 拿到的 AsyncValue。AsyncValue 提供了强大的 .when() 模式匹配,让你非常优雅地处理 Loading、Error 和 Data 状态。 class DeviceDetailView 阅读全文
posted @ 2026-07-23 17:54 水车 阅读(7) 评论(0) 推荐(0)