Last updated:
0 purchases
google map fluttify
GoogleMap Map Component Flutter Plugin #
依赖 #
dependencies:
flutter:
sdk: flutter
google_map_fluttify: ^x.x.x
copied to clipboard
配置 #
Android #
在AndroidManifest.xml中配置key:
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="AIxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxh4"/>
copied to clipboard
iOS #
使用地图需要使能UiKitView, 在Info.plist中添加:
<key>io.flutter.embedded_views_preview</key>
<string>YES</string>
copied to clipboard
定位需要声明权限, 在Info.plist中添加:
<key>NSLocationWhenInUseUsageDescription</key>
<string>需要定位权限</string>
copied to clipboard
导入 #
import 'package:google_map_fluttify/google_map_fluttify.dart';
copied to clipboard
使用 #
参考wiki.
LICENSE #
Copyright (C) 2020 yohom
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see https://www.gnu.org/licenses/.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.