autosos_flutter/lib/const_config.dart

26 lines
1.4 KiB
Dart
Raw Normal View History

2024-02-18 22:12:08 +08:00
import 'package:amap_flutter_base/amap_flutter_base.dart';
import 'package:amap_flutter_map/amap_flutter_map.dart';
class ConstConfig {
2024-03-16 15:52:12 +08:00
static const String androidKey='c715f41c63e5bd7faef2b53de7438709';
static const String iosKey='8c545f5186ddd9d2c585693f72b4790a';
2024-02-18 22:12:08 +08:00
///配置您申请的apikey在此处配置之后可以在初始化[AMapWidget]时,通过`apiKey`属性设置
///
///注意:使用[AMapWidget]的`apiKey`属性设置的key的优先级高于通过Native配置key的优先级
///使用[AMapWidget]的`apiKey`属性配置后Native配置的key将失效请根据实际情况选择使用
static const AMapApiKey amapApiKeys = AMapApiKey(
2024-03-16 15:52:12 +08:00
androidKey: androidKey,
iosKey: iosKey);
2024-02-18 22:12:08 +08:00
///高德隐私合规声明,这里只是示例,实际使用中请按照实际参数设置[AMapPrivacyStatement]的'hasContains''hasShow''hasAgree'这三个参数
///
/// 注意:[AMapPrivacyStatement]的'hasContains''hasShow''hasAgree'这三个参数中有一个为false高德SDK均不会工作会造成地图白屏等现象
///
/// 高德开发者合规指南请参考https://lbs.amap.com/agreement/compliance
///
/// 高德SDK合规使用方案请参考https://lbs.amap.com/news/sdkhgsy
static const AMapPrivacyStatement amapPrivacyStatement =
AMapPrivacyStatement(hasContains: true, hasShow: true, hasAgree: true);
}