maps_adapter_google_maps 0.2.1

Flutter iOS

An adapter between 'package:maps' and 'google_maps_flutter'.

Pub Package Github Actions CI

Overview #

This is a Google Maps Android/iOS SDK adapter for the package maps.

Getting started #

1.Add dependency #

In pubspec.yaml, you should have:

dependencies:
  maps_adapter_google_maps: ^0.3.0

2.Modify configuration files #

For Android support, you need to modify android/app/src/main/AndroidManifest.xml.

For iOS support, you need to modify:

  • ios/Runner/AppDelegate.m (if your Flutter project uses Objective-C)
  • ios/Runner/AppDelegate.swift (if your Flutter project uses Switf)

You also need to ensure that ios/Runner/Info.plist has something like:

	<key>io.flutter.embedded_views_preview</key>
	<true/>
	<key>Privacy - Location When In Use Usage Description</key>
	<string>A description of your privacy policy.</string>

3.Set map adapter #

In your main function:

import 'package:maps/maps.dart';
import 'package:maps_adapter_google_maps';

void main() {
  MapAdapter.defaultInstance = const GoogleMapsNativeAdapter();

  // ...
}

Contributing? #

Test changes manually with the example application in the repository.

0
likes
70
pub points
38%
popularity

An adapter between 'package:maps' and 'google_maps_flutter'.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

terrier989@gmail.com

License

Apache 2.0 (LICENSE)

Dependencies

flutter, google_maps_flutter, maps

More

Packages that depend on maps_adapter_google_maps