- 添加 flutter_riverpod ^2.5.1 依赖 - 搭建 core/error/failures.dart 和 core/usecases/usecase.dart 基础骨架 - auth feature 完整 3 层重构: - domain: AuthUser + AuthSession 实体, IAuthRepository 接口, 全套 UseCases - data: AuthRepositoryImpl(Strangler Fig,委托给 AuthService 保留 token 刷新逻辑) - presentation: AuthNotifier + authProvider + currentUserProvider + isAuthenticatedProvider - 4 个 auth 页面升级为 ConsumerStatefulWidget,使用 ref.read(authProvider.notifier) - main.dart: ProviderScope 包裹 GenexConsumerApp,改为 ConsumerStatefulWidget - 桥接 AuthService ValueNotifier → Riverpod authProvider(会话过期自动导航) - 12 个 feature 全部创建 Riverpod providers(FutureProvider/NotifierProvider) - 修复 my_coupons_page.dart 中 EmptyState/StatusTags 缺少 BuildContext 的预存在错误 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| android | ||
| assets/images | ||
| ios | ||
| lib | ||
| .gitignore | ||
| .metadata | ||
| README.md | ||
| analysis_options.yaml | ||
| pubspec.yaml | ||
README.md
genex_consumer
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.