r/FlutterDev • • Oct 02 '23

Discussion Google Earth now Flutter on iOS, Android, Web

https://x.com/flutterdev/status/1708908434068779376?s=46
195 Upvotes

22 comments sorted by

80

u/de1mat Oct 02 '23

Sounds like it needs some tweaks but it is interesting and reassuring to see Google migrating apps across to Flutter. Also good for the community, as Google will no doubt be uncovering the same bugs and issues that the community have - easier for them to replicate and improve based on their own apps.

50

u/crimsonvspurple Oct 02 '23

This is really big. Didn't think google would use flutter on web. Maybe now web will see more love!

22

u/kevmoo Oct 03 '23

We have a whole team dedicated to Flutter on the web. It's been getting love for years!

4

u/crimsonvspurple Oct 03 '23

The recent canvaskit size reduction and related tasks have been really good.

But the performance is still really bad on mobile (esp iphone safari). Text selection is still wonky. No CTRL+F. No official support for ads. No official google crawler support.

I have two flutter web apps deployed and they would have never been worth it if not for the ios/android build from the same code base.

15

u/AerodynamicCheese Oct 03 '23

Before anyone gets too excited this is the same "picture in a frame" approach like with HERE Maps, where Flutter is the picture frame and native view is the picture itself. You can always verify this with the two (or more) finger scroll trick. The bottomsheet which is Flutter has its content scroll faster with multiple fingers while the underlying globe is unaffected by that trick.

It's still very strong endorsement for Flutter and also pragmatic approach that quite a lot of smaller companies have been using. Use native view for something specifically heavy (map, camera, etc) and have UI be in Flutter. You still save quite alot of development effort by not duplicating UI code. Also allows for the branding aspect to be identical between platforms. And in a way theres nothing to brand in a camera surface or spinning globe, so no drawbacks using native view in that regard.

I do notice that Google has taken a different approach as to how UI elements outside of bottomsheet fade. Google has it happen from some sort of breakpoint event, while HERE Maps uses bottomsheet expansion progress to gradually fade in/out those elements. HERE Maps bottomsheet starts to stutter quite alot if you start playing/jiggling it while google earth one is fine. So there definitely seems to be some performance gotchas that come from this picture frame over picture approach.

2

u/chrabeusz Oct 03 '23

Doesn't multiple finger bug apply only to scroll views? There is InteractiveViewer demo in flutter gallery that behaves fine.

Still, it seems the earth is platform view, you can see that in HTML on web version.

1

u/gitarthak Oct 04 '23

Check with the app called libchecker. It is written in flutter

13

u/[deleted] Oct 02 '23

That’s pretty dope! Nice to see Google getting more and more invested into Flutter.

4

u/No_Assistant1783 Oct 02 '23 edited Oct 02 '23

Looking at the packages used, I think they probably used webview for the Earth part (wasm?) and Flutter for the interface. No idea if this could be an 'add to app' app or if they use platform view. Interesting that they use internal package called material_adaptive_ui while Google ads use material_responsive_ui, maybe they'll show us how it works one day.

Hmm there is flutter_svg and path_drawing so it might just be Flutter and they simply have skilled programmers?

Still need a lot of work tho.

Anyway, it's interesting that some Google apps are starting to use Flutter.

2

u/SoftwarePaulie Oct 02 '23

How can you see the packages used?

3

u/No_Assistant1783 Oct 02 '23

There are other ways but I use fluttershark since it's the easiest

12

u/ren3f Oct 02 '23

Probably it's just the interface and not the map itself that's made with Flutter, but still nice :)

5

u/F__ckReddit Oct 02 '23

How dare you lol you made them all cry

-11

u/adel_b Oct 02 '23

the hash you are smoking is too dope

21

u/ren3f Oct 02 '23

Did you look at these screenshots?

https://miro.medium.com/v2/resize:fit:828/0*UqT1wBXup39Kri8p

Having the interface made in Flutter is really nice, rebuilding the complete maps or earth engine to run in Flutter doesn't make sense.

-14

u/adel_b Oct 02 '23

Flutter has the best support for Canvas, even better than javascript, Canvas is still part of Flutter widgets, in face everything on Flutter is built on top of canvas

0

u/F__ckReddit Oct 02 '23

Misleading title

5

u/de1mat Oct 03 '23 edited Oct 03 '23

Yea sorry I should have put the word “UI” in there doh 🤦‍♂️

2

u/[deleted] Oct 25 '23

It’s heartening that Google cares about Flutter. But the reviews are very negative on the Play Store.

-12

u/techmavengeospatial Oct 02 '23

Nice work Google!

Earth Explorer 3D map iOS and Android has augmented reality and supports Google photorealistic buildings And nearly all OGC and ESRI services https://EarthExplorer.techmaven.net

0

u/[deleted] Oct 02 '23

[deleted]

7

u/fegodev Oct 03 '23

The flutter update is coming “in the next few weeks”