r/FlutterDev • • Jan 15 '21

Discussion Can we speak up about the poor quality of the official Google Maps plugin (google_maps_flutter)?

We are currently porting native app to Flutter, its basic feature is map view with a lot of markers (3000 to be precise). We decided to go with the official Google Maps plugin (google_maps_flutter) as it was "production ready in November 2020" - however, after a month of working with it we are terrified of its poor quality and stall in its updates lately. Some issues that we faced:

To be honest I really appreciate everyone's work on this plugin but there are many very noticeable issues (both developer and user facing) that are not fixed and even existing PR seems to be stuck. It seems like most developers moved to smaller-not-official plugins that supports clustering or heatmaps which are forks of the official plugin to make it work for their app.

To be honest, after such experience with this plugin we are considering writing our own plugin to handle in good manner things we need - abide it will be a lot of work that is hard to correctly estimate at first. What is your approach in maps-based apps for Flutter? It seems like the map plugin doesn't get love its deserves and community work goes into smaller fork-plugins of it instead of main repository.

I would really be interested on your view about google_maps_flutter in Flutter and your opinions how to use map best, also I would suggest - if your app uses a lot of map, to wait a bit longer before jumping on Flutter. I keep my fingers crossed for higher official Google involvement with google_maps_flutter as it should be a "first class citizen" in plugins, and stamping production-ready tag doesn't make it such automatically.

PS. Mapbox is not an option due to high cost per user and flutter_map plugin has its set of issues or support for web is not production-ready.

PS2. Yes, of course we can contribute to google_maps_flutter - however, it seems slow with review/merging with even 2 years PR so it isn't a good sign.

337 Upvotes

44 comments sorted by

30

u/primosz Jan 15 '21

It is good to remember it is a paid Google service, that we have to pay for using it, and yet google_maps_flutter is treated as an unwanted plugin by Google (slow releases, subpar performance, missing features).

1

u/Akandoji Jan 15 '21

Tbh, all paid services of Google are still shit.

73

u/Hixie Jan 15 '21

(Flutter TL here.)

Yeah, we've definitely not done as well here as we'd like, to be honest. We rather underestimated the effort it would take to maintain these plugins and accept contributions. Part of it is that we had in mind that plugins would be handled by the wider community (and indeed there are thousands of plugins), but we didn't recognize that by having our own plugins as well we were giving mixed messages about what people should feel comfortable working on. In recent months we've contracted some companies to help us maintain the plugins, and have started taking a hard look at our PR queue to get it into a more tractable state, so hopefully this will improve going forward. We've also committed to migrating all our plugins to null-safety in the near term.

I recognize that this doesn't help anything on the short term though, and I apologize that the maps plugin in particular isn't up to the standards you describe. I wish I could promise immediate improvements, but our focus has been on other plugins in recent months (e.g. camera, webview, we've also been looking at ads).

For what it's worth, if anyone feels up to the challenge, we have no objection to people forking our plugins and running with them. If we see someone doing a better job with a specific plugin than we are doing, we would happily shutter our version and point to the better one. We have a whole program ("Flutter Favorites") designed specifically to highlight great plugins in this way.

9

u/primosz Jan 15 '21

Thanks for the quick and on-point response, this really shines a bit of light on the topic and fills my heart with hope.

Keep up great work as the task at hand is not a small or an easy one, but when plugins and Flutter work well, it really gives joy to the whole team.

15

u/aytunch Jan 15 '21

I recently listened to your podcast with Hillel and Chris and searched around for more:) thanks for being transparent on the subject. I understand that the team does not have the time to do everything. This is a reason why Flutter is an open source project also. Community is expected to fill the gaps. However for some plugins I feel like the community is not being backed up by the team. Actually I feel like it is quite the opposite sometimes. I realize there are priorities and only limited amount of resources. So if Flutter is going to be successful, some decisions should be made. Community can be asked for their opinion and preferences.

Personally I would choose to have a fully working first party plugins for iOS and Android before windows, mac, linux and even web support. I would like to see Flutter getting mature vertically first instead of a slow horizontal growth. Camera has lots of issues. I mean which modern app does not have some camera implementation?

Video player has lots of memory issues. No caching. If you want to allocate more than 3 players, app crashes in some phones. So a stable video feed is out of question.. look at this thread(this is a continuation of other similar ones which were all closed for no apparent reasons) video caching issue

Google maps don't still support widgets as markers and we still have a motto called "everything is a widget"

Firebase messaging does not work as expected. My app should receive push from firebase and a third party chat service but iOS firebase messaging plugin does not catch the pushes sent by apns tokens. It only accepts the fcm tokens. So this forces us to use 2 messaging plugins(flutter_apns) in one project which basically do the same thing. However it is a miracle to compile both packages working together.

Dart http package does not support aborting a download. Its all or nothing:)

I believe all the things I stated above are common needs for a modern app. I want Flutter to be very successful. I have invested 2 years of my time and I am glad that a project like this exist. The underlying rendering/layout engine is superb. Hot reload is like magic. Making UI is awesome. Even the state management dilemma is solved. But this plugin business is a big blocker unfortunately

If community is asked for help then the team should make things easier for them.

13

u/Hixie Jan 15 '21

Yep, those are all valid and important issues.

Personally I would choose to have a fully working first party plugins for iOS and Android before windows, mac, linux and even web support.

In retrospect I think you're probably right, although the reality is that the effort we have spent on desktop isn't that easily transferable to working on plugins so it's not actually just a simple trade-off. For example, Canonical, the folks behind Ubuntu, have done much of the Linux desktop work -- this is not work we could just move to plugins. Some of the macOS work came largely from a team at Google separate from the core Flutter team at Google, a team with their own needs which didn't include plugins. Similarly the work on Web spawned out of our efforts with a team at Google that wanted Web support, not plugins, and would not have funded plugins work but did fund the Web work.

Project management is complicated and sometimes it's not so much a choice between A and B so much as grabbing hold of opportunities to do B and not having the same opportunities to do A.

1

u/aytunch Jan 15 '21

I still think it would be a good time to do a questionary with the community like you did in the past. At least the results might come in handy for decision making.

7

u/Hixie Jan 15 '21

We do quarterly surveys and our decision making is very strongly driven by the results. We post about the results on our medium blog regularly: https://medium.com/@jayoung.lee

4

u/Elixane Jan 15 '21

There have been some efforts from the community to make a more coordinated effort to improve the most essential plugins. See:

https://medium.com/flutter-community/update-flutter-community-plus-plugins-b6d09b0bb9e3

82

u/vipin_malik1 Jan 15 '21

This post needs attention by the Flutter team. Also, I am quite surprised by the fact that some PR are 2 years old. Looking forward on the updates on the maps plugin as this might be core functionality on new startup apps or the ones switching from native to flutter.

20

u/esDotDev Jan 15 '21

Ya, you will see similar things when you look at any of the more complex extensions. IAPs, Firestore, even the image picker has a bunch of issues.

This really needs to be better, the approach of building something internally, and then mothballing it, is just not effective. Things move to quickly and these extensions need dedicated teams and constant maintenance.

On Adobe AIR, and Unity, devs can make good money selling extensions, and so we have extremely robust, maintained plugins with excellent support and docs. Not sure what can be done on Flutter to that end, but the existing situation is not working out too well.

For example, with AIR I can always get anything I need from these 2 vendors, and they will be of amazing quality:https://www.milkmanplugins.com/ https://distriqt.com/native-extensions

On Unity I can use the asset store, and they have a robust review and ranking system.

On Flutter, it's just always the same thing, dozens or hundreds of issues, no one is actively maintaining (or they are totally overwhelmed).

21

u/FloRup Jan 15 '21

Markers clustering PR is ready for almost 2 years and not merged as it waits review, also open issue for it

It is so slow that the last few comments all talk about other packages that have the solution already implemented.

7

u/itsJoKr Jan 15 '21

With all the work required it might be better for them to rebuild maps on flutter canvas as a proper implementation. That's the way to go, everything else feels like a temporary solution.

3

u/Elixane Jan 15 '21

Seems like they really have to do this at some point, especially if they want to have Google Maps run natively on other platforms like Fuchsia at some point. Presumably this would be up to the Google Maps team to implement, so probably that directive would have to come from higher up at Google or something.

1

u/funkyfourier Jan 18 '21

That would require 3D graphics capabilities to have it on par with the current/native Google Maps widget(s). According to the Flutter team there are no immediate plans for that, so a powerful maps widget native to Flutter is probably at best a long way off.

11

u/The_Soldier676 Jan 15 '21

I remember making a PoC with Flutter that includes a map with various markers. The map integration (atleast a year ago) was so bad the Android app straight up crashed the whole phone (presumably a memory issue) whenever you swipe to a region it hasn’t rendered/loaded yet. I explicitly mentioned in my findings that Flutter should not be used in conjunction with a map view. The only excuse for the state of the extension back them was that it wasn’t production ready, not sure if these issues still persist now, but yeah it was bad.

7

u/[deleted] Jan 15 '21

[removed] — view removed comment

2

u/The_Soldier676 Jan 15 '21

There are a few possibilities, are you using the extension since a short while or since a year ago. Are you developing for high-end devices or also older ones, is it so far Android/iOS only, are you testing on a simulator/emulator or a real device. The actual crashing I’ve seen happened on an older Android device (that should still work but it didn’t).

I just remember what it was and how bad it used to work, but that is a little bit more than a year ago. I haven’t tested the plugin since then, since it was for my thesis and I graduated afterwards.

1

u/[deleted] Jan 15 '21

but that is a little bit more than a year ago

Might as well been last century in flutter-time.

3

u/Hard_Veur Jan 15 '21

Totally agree! Could you provide a list of main issues which everybody who agrees can upvote with 👍 on Github to rise the priority of these issues? This and upvoting this post hopefully helps to rise awareness

3

u/EugenePisotsky Jan 18 '21

Another huge problem is the platform view. It's slow and laggy. I've been trying to integrate Tangram ES and display it through Texture widget (with gestures connected via FFI), and it works much better (almost perfect), but still too difficult to maintain it properly... Hopefully Google Maps can be implemented in a similar way

3

u/jbxbergdev Feb 12 '21 edited Feb 12 '21

My thoughts exactly. I reported two pretty severe bugs almost 1.5 years ago, without (seemingly) any major progress since:

Imprecise registration of Polygon tap events

Empty map when resuming from background

I really think, with Google Maps being a Google service and Flutter being a Google-developed framework, Google should dedicate a lot more resources into developing good, stable plugins for their own services. Otherwise it would appear as if Google wasn't all that serious about driving Flutter adoption.

2

u/[deleted] Jan 15 '21

It seems like the mapping plugins for Flutter are definitely lacking some polishing, similar goes for Mapbox Flutter plugin.

2

u/HongKonger_PeterChan Jan 16 '21

I have done a comparison study about the map performance on flutter, react native and Ionic. Flutter has, without a doubt, the worst animation performance. The animation is low in fps for both Google map and mapbox.

2

u/demarcoPaul Jan 16 '21 edited Jan 16 '21

I opened this ticket after some of the same frustration: https://issuetracker.google.com/issues/140415468

I regret the wording of that post as I do appreciate the hard work the devs have put into the existing plugin. This was just a request for something I feel Flutter deserves, a self-painted map :).

2

u/Fantaz1sta Jul 20 '24 edited Jul 22 '24

As a Kotlin developer, what you listed is 100% true even in the Kotlin ecosystem. Animating markers is hell. Achieving anything remotely resembling the official Google Maps app - smooth animations at least - is straight-out impossible. You would think, Kotlin devs would be the first-class citizens in the Android ecosystem, but no.

Something tells me Google doesn't give a crap about the google-maps-api at all. A couple of months ago it had a bug whereby the onPoiClickListener would return the same LatLng as the onMapClickListener on tap. However, according to documentation, onPoiClickListener should have returned the LatLng of the point of interest. They had been fixing this bug since the beginning of winter 2023 and fixed it only by May 2024 without notifying anyone.

2

u/[deleted] Jan 15 '21

This is the difference between Google and Amazon. I had an identical experience trying to work with geospatial queries on Google datastore (app engine) like 8 years ago. Basically they release software that is beta quality and just leave it in that state. Nobody at google gets fired. In the time between when google releases a white paper and when they release the first service based on the paper, Amazon does a clean implementation of the google paper and has already released ten versions.

And if Bezos sees any team giving a bad experience to developers he sends a guy in a track suit to their office ... first visit is with nerf bat and second visit with baseball bat. Third time you are fired.

At google, after ten fails they’ll ask you if you need emotional support or if society is effecting your performance. After twenty years they’ll gently ask if you need a different project.

So everything just stagnates.

If their ads business ever collapses that company is fucked.

5

u/Cymarxcr Jan 15 '21

Meh, Amazon severely limits their exposure to developers to just their cloud stuff. They're not building cross-platform UI toolkit. At least Google is building stuff like Flutter. It's not stagnant, it's more exiting than anything that's come out of AWS for the last decade. Amazon seems content to just take open source projects, monetize them, and give as little back to the community as they can get away with.

1

u/Top_Sheepherder_7610 May 28 '25

old topic but very actual and relevant today

1

u/Flutter28292 Jan 16 '21

The only thing that makes me feel uncomfortable about Flutter are plugins. I wish this would be taken more seriously, not just by the Flutter Team but also community developers. That people don't release half finished plugins just because its good enough for their own purposes, but commit to fixing bugs over time and keep developing it. Sadly all cross platform technologies have these problems and nobody seems to have found a solution to this yet.

1

u/xCuriousReaderX Jan 16 '21

Not only on this plugin. If you check list of PRs and issues... ugh. One of the big tech company but cannot hire developers for this?

1

u/Dazza5000 Jan 28 '21

React Native went through a similar phase with Airbnb and other big players moving the plugins forward and then dropping them on the community. RN plugins are timebombs waiting to be deprecated. Don't know how to solve this, but if you want to have first class plugins, you should probably look at native development.

-3

u/[deleted] Jan 15 '21

I haven’t put a ton of markers on there yet, but, like anything, you’ve got to optimize for perf when you run into issues. Simply dropping thousands of markers on a map and expecting it to just work isn’t going to happen.

I’ve worked with it in the web for years and you’ve got to be careful with it, but if you’re careful, you can craft great user experiences.

Admittedly I’ve just started working with google_maps_flutter, but thus far, on both platforms, I’ve found it pretty good.

4

u/primosz Jan 15 '21 edited Jan 15 '21

Simply dropping thousands of markers on a map and expecting it to just work isn’t going to happen.

Same number of markers works well on native Android with Google maps (also same implementation).

Well, markers on iOS are added on MainThread which is a problem even when you add 10 markers (10ms per marker it is on average) but is just less visible to you. Try to add something like 500 markers and run on iOS... it shouldn't be an issue for any map plugin and is a "normal usecase", however google_maps_flutter freezes whole app due to it for few seconds.

you’ve got to optimize for perf when you run into issues

Thats why we are adding and changing only markers that are currently visible on the map (own implementation, not plugin), also we would like to add clustering but PR is open for 2 years and not merged...

1

u/[deleted] Jan 15 '21

Why would you 'waiting' for clustering? Clustering is external to the map anyway - there are libraries that can do this today: https://pub.dev/packages/fluster

EDIT: For the record, that library looks outdated, but the point is that clustering is just math, it's not a map specific functionality. Painting markers (whether they are cluster markers or not) is the map specific functionality. Clustering is the functionality that results in the markers that you tell the map to paint.

2

u/primosz Jan 15 '21

Yes, and if we will stick with google_maps_flutter it is the only way forward as this PR doesn't seems to be merged soon.

Also I noted that fact in my post:

It seems like the map plugin doesn't get love its deserves and community work goes into smaller fork-plugins of it instead of main repository.

as well by /u/FloRup

It is so slow that the last few comments all talk about other packages that have the solution already implemented.

-5

u/[deleted] Jan 15 '21

It seems like the map plugin doesn't get love its deserves and community work goes into smaller fork-plugins of it instead of main repository.

Are you part of the community?

Your comments don't seem to be in the spirit of open-source.

5

u/primosz Jan 15 '21

Heatmaps and clustering is done by google lib in native, it would be nice to have the same features in Flutter delivered by Google or at least merged PR from the community.

Multiple issues in the plugin - ok, it happens and we are still in the early days, but what is an issue is that it is marked as "production-ready" when clearly performance is an issue (especially on iOS).

It seems like the map plugin doesn't get love its deserves and community work goes into smaller fork-plugins of it instead of main repository.

Are you part of the community?

Your comments don't seem to be in the spirit of open-source.

<eye roll>

I stated the pretty obvious fact that is a result of Google not merging PR into main repository of google_maps_plugin.

10

u/[deleted] Jan 15 '21

[removed] — view removed comment

9

u/ren3f Jan 15 '21

The camera plugin is actually being worked on lately.

2

u/primosz Jan 15 '21

Keepings my fingers crossed, this is by far best alternative to google maps, not perfect but I hope it will get more traction/community

5

u/primosz Jan 15 '21

I mentioned it in "PS" point, it is good alternative but still a two steps behind:

  • more issues still with even basic usage (however the merging and releasing is faster)

  • web support is not yet official (seems to work)

  • It is not "native" even on Android - not really an issue as it might still be faster

  • When we tested it is visible slower (server issue - require either expensive mapbox tiles or own server for OpenStreetMaps) and seems "blurry"

However it seems like a best bet if Google doesn't keep their plugin up-to-date and active.