- 配置 edge-to-edge 沉浸式状态栏与刘海屏适配 - 新增百度地图权限、AK 配置及定位权限说明 - 接入 MethodChannel 实现返回键退后台热启动优化 - 配置自定义签名并更新构建逻辑 - 完善 token 刷新与鉴权失效统一处理 - 新增地图页与截图页路由 - 修复返回键拦截导致的 PopScope 失效问题
25 lines
764 B
Dart
25 lines
764 B
Dart
/// 全局常量与端点配置。
|
||
class AppConstants {
|
||
const AppConstants._();
|
||
|
||
/// 生产环境基础地址。
|
||
static const String kBaseUrl = 'http://192.168.100.244:8000/api/';
|
||
|
||
/// 请求超时(毫秒)。
|
||
static const int kConnectTimeoutMs = 15000;
|
||
|
||
/// 响应超时(毫秒)。
|
||
static const int kReceiveTimeoutMs = 15000;
|
||
|
||
/// 安全存储键。
|
||
static const String kTokenKey = 'auth_token';
|
||
static const String kRefreshTokenKey = 'refresh_token';
|
||
static const String kDeviceIdKey = 'device_id';
|
||
|
||
/// 应用名称。
|
||
static const String kAppName = '家庭关怀';
|
||
|
||
/// 百度地图开放平台申请的 AK(Android / iOS 共用)。
|
||
static const String kBaiduMapAk = '请替换为百度地图开放平台申请的AK';
|
||
}
|