[问题] sellRestrictionProvider 未绑定用户身份。若先用预种账号(isRestricted=true) 测试,再切换为正式认种账号,Riverpod keepAlive 缓存会在 2 分钟内残留上一个用户 的 true 值,导致正式认种用户错误看到预种卖出限制提示。 [修复] 在 provider 内 watch userNotifierProvider.select((s) => s.accountSequence), accountSequence 变化(登录/切换账号)时 provider 自动失效并重新请求。 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| android | ||
| assets | ||
| ios | ||
| lib | ||
| scripts | ||
| test | ||
| .gitignore | ||
| .metadata | ||
| DEVELOPMENT_GUIDE.md | ||
| README.md | ||
| analysis_options.yaml | ||
| pubspec.yaml | ||
README.md
mining_app
A new Flutter project.
Getting Started
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.