google-maps-flutter

Redirect to google maps app with directions between source and destination with some stops in flutter

此生再无相见时 提交于 2021-01-29 08:46:11
问题 I want to redirect to google maps app for navigation with some stops between source and destination from my flutter application. url_launcher package redirects to map with source and destination but I want with some stops. Is that possible? 回答1: If you want to navigate with directions you can just create a url with source and destination co-ordinates and other coordinates to add as stops. Steps: 1. Install url_launcher plugin write a code like below. _launchURL(String url) async { if (await

How to handle “gps” location provider requires ACCESS_FINE_LOCATION permission. in flutter apps

[亡魂溺海] 提交于 2020-12-15 02:58:31
问题 Hi I am trying to get user location by using location package and google-maps-flutter in flutter.. but I get an error that say "gps" location provider requires ACCESS_FINE_LOCATION permission. I have added this code in my androidmanifest file <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> I still get an error although I have

how to handling app that get sudden close in flutter

房东的猫 提交于 2020-05-17 06:06:45
问题 I am using location and google maps flutter in my apps... but my apps always get close unexpectedly...when accessing StreamSubscription here is the message the problem appears in only some android devices..is there something that I can do to prevent this problem.. ? 来源: https://stackoverflow.com/questions/61788319/how-to-handling-app-that-get-sudden-close-in-flutter

how to handling app that get sudden close in flutter

此生再无相见时 提交于 2020-05-17 06:06:34
问题 I am using location and google maps flutter in my apps... but my apps always get close unexpectedly...when accessing StreamSubscription here is the message the problem appears in only some android devices..is there something that I can do to prevent this problem.. ? 来源: https://stackoverflow.com/questions/61788319/how-to-handling-app-that-get-sudden-close-in-flutter

Flutter Google Maps remove navigation button at bottomRight on marker tap

怎甘沉沦 提交于 2020-04-13 17:01:31
问题 Is it possible to remove the google maps navigation button at bottom right when we click on a marker? I tried this Marker( consumeTapEvents: true, onTap: () { print("marker clicked"); }, infoWindow: InfoWindow( title: "title", snippet: "snippet", onTap: () { markerTap(); }), ) It worked but I ran into a new issue that it doesn't open info window on marker on click. Any suggestion? 回答1: With google_maps_flutter version 0.5.20 they added support to enable/disable this. In your GoogleMap widget

Flutter Google Maps remove navigation button at bottomRight on marker tap

眉间皱痕 提交于 2020-04-13 17:00:19
问题 Is it possible to remove the google maps navigation button at bottom right when we click on a marker? I tried this Marker( consumeTapEvents: true, onTap: () { print("marker clicked"); }, infoWindow: InfoWindow( title: "title", snippet: "snippet", onTap: () { markerTap(); }), ) It worked but I ran into a new issue that it doesn't open info window on marker on click. Any suggestion? 回答1: With google_maps_flutter version 0.5.20 they added support to enable/disable this. In your GoogleMap widget

Flutter Google Maps, Trying to create an already created platform view, view id: 0

自闭症网瘾萝莉.ら 提交于 2020-04-09 05:00:30
问题 For first time google maps flutter ,loads perfect but when hot restart it , it goes to platform exception google_maps_flutter: ^0.5.21+15 Github [google_maps_flutter] Trying to create an already created platform view #45695 [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: PlatformException(error, java.lang.IllegalStateException: Trying to create an already created platform view, view id: 0 Flutter doctor -v [✓] Flutter (Channel stable, v1.12.13+hotfix.5, on Linux, locale en

Flutter Google Maps, Trying to create an already created platform view, view id: 0

不问归期 提交于 2020-04-09 04:59:27
问题 For first time google maps flutter ,loads perfect but when hot restart it , it goes to platform exception google_maps_flutter: ^0.5.21+15 Github [google_maps_flutter] Trying to create an already created platform view #45695 [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: PlatformException(error, java.lang.IllegalStateException: Trying to create an already created platform view, view id: 0 Flutter doctor -v [✓] Flutter (Channel stable, v1.12.13+hotfix.5, on Linux, locale en