autosos_flutter/lib/const_config.dart

26 lines
1.4 KiB
Dart
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

import 'package:amap_flutter_base/amap_flutter_base.dart';
import 'package:amap_flutter_map/amap_flutter_map.dart';
class ConstConfig {
static const String androidKey='c715f41c63e5bd7faef2b53de7438709';
static const String iosKey='8c545f5186ddd9d2c585693f72b4790a';
///配置您申请的apikey在此处配置之后可以在初始化[AMapWidget]时,通过`apiKey`属性设置
///
///注意:使用[AMapWidget]的`apiKey`属性设置的key的优先级高于通过Native配置key的优先级
///使用[AMapWidget]的`apiKey`属性配置后Native配置的key将失效请根据实际情况选择使用
static const AMapApiKey amapApiKeys = AMapApiKey(
androidKey: androidKey,
iosKey: iosKey);
///高德隐私合规声明,这里只是示例,实际使用中请按照实际参数设置[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);
}