Google maps mobile APP - Dart - Flutter

1,951 views
Skip to first unread message

Raffael Russo

unread,
Jul 20, 2016, 7:11:39 PM7/20/16
to flutt...@googlegroups.com
Hello,

My name is Raffael, I am a graduating computer engineer and I'm starting to develop mobile Applications using Flutter and Dart for a College Porject.

I'd like to know how can I use the google maps api in order to make an app that shows the google maps and saves a position in my database.

Is it possible to use the googles API in flutter with dart language? Is there any place where can I see some kind of information or tutorial for it?

Thank you for the support!!

Kind regards,

Raffael Russo

Alexandre Ardhuin

unread,
Jul 21, 2016, 4:25:30 AM7/21/16
to Raffael Russo, Flutter Dev
Hi,

You can not use the Google Maps API directly in Flutter today ( tracking issue https://github.com/flutter/flutter/issues/73 ).

Depending on your requirements you can alternatively :
 - use the static maps API ( https://developers.google.com/maps/documentation/static-maps/ ) to display static images.
 - use a FluttterView next to a native Maps and use messages to communicate between native map and dart ( see https://flutter-io-staging-69a8a.firebaseapp.com/platform-services/ and soon https://flutter.io/platform-services/)

Cheers,
Alexandre

--
You received this message because you are subscribed to the Google Groups "Flutter Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Joe Blue

unread,
Aug 1, 2016, 6:15:20 AM8/1/16
to Flutter Dev
thansk Alexandre,


i need to similar patterns. For example from the the flutter app, i need to open google Cal, Google Docs, etc

I am guessing that maybe i can use Intents ? The idea if i am correct regarding Intents, is that from the flutter app, you can pass arguements to the google maps app. Then from the Flutter app, you can call an Android Intent to open the google maps app

cheers Joe

Eric Seidel

unread,
Aug 1, 2016, 9:10:24 AM8/1/16
to Joe Blue, Flutter Dev
URLLaunch.launch() is a built-in service Flutter provides which wraps
the platform "open a url" semantics:
https://docs.flutter.io/flutter/services/UrlLauncher-class.html

We also provide a (very minimal) built-in wraper around Android's intent system:
https://docs.flutter.io/flutter/services/Activity/startActivity.html

For anything more complicated, we'd direct you to the hello_services
model for integrating native code which Alexandre pointed to:
https://flutter.io/platform-services/
https://github.com/flutter/flutter/tree/master/examples/hello_services

Hope that helps!

Joe Blue

unread,
Aug 1, 2016, 10:19:33 AM8/1/16
to Eric Seidel, Flutter Dev
Very helpful.  thanks Eric !!

Joe Blue

unread,
Aug 1, 2016, 10:20:16 AM8/1/16
to Eric Seidel, Flutter Dev
I just realised.. Does this work on IOS the same ?
IOS does not have an intent system ?

joe

Eric Seidel

unread,
Aug 1, 2016, 10:20:56 AM8/1/16
to Joe Blue, Flutter Dev
The Activity service is Android-only, correct. URLLaunch works on both.

Joe Blue

unread,
Aug 1, 2016, 11:13:30 AM8/1/16
to Eric Seidel, Flutter Dev
Yes, it is working for me. Awesome - thanks Eric
Reply all
Reply to author
Forward
0 new messages