feat(android): 支持沉浸式状态栏、地图定位与自定义签名
- 配置 edge-to-edge 沉浸式状态栏与刘海屏适配 - 新增百度地图权限、AK 配置及定位权限说明 - 接入 MethodChannel 实现返回键退后台热启动优化 - 配置自定义签名并更新构建逻辑 - 完善 token 刷新与鉴权失效统一处理 - 新增地图页与截图页路由 - 修复返回键拦截导致的 PopScope 失效问题
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
|
||||
import '../domain/auth_repository.dart';
|
||||
import 'auth_api.dart';
|
||||
import 'auth_repository_impl.dart';
|
||||
|
||||
/// 认证仓库 Provider。
|
||||
@@ -8,5 +9,6 @@ import 'auth_repository_impl.dart';
|
||||
/// 会话级依赖,通过 ref.keepAlive() 避免页面切换时被销毁重建。
|
||||
final authRepositoryProvider = Provider<AuthRepository>((ref) {
|
||||
ref.keepAlive();
|
||||
return const AuthRepositoryImpl();
|
||||
const api = AuthApi();
|
||||
return AuthRepositoryImpl(api);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user