Muzaffer
Muzaffer

Reputation: 53

How to open IOS Maps on Flutter Framework

I can open Google Maps with flutter framework. What do I need to do to open Apple maps?

Upvotes: 1

Views: 2127

Answers (2)

Fahmida
Fahmida

Reputation: 1210

Use apple_maps_flutter which is a flutter plugin that provides an Apple Maps widget. To open apple map only in ios device, you can make a platform check.

Upvotes: 0

CopsOnRoad
CopsOnRoad

Reputation: 268264

String url = 'https://maps.apple.com/?q=0,0'; // I used 0,0 as latitude and longitude
if (await canLaunch(url)) {
  launch(url);
} else {
  // error in launching map
}

You need this plugin

Upvotes: 2

Related Questions