firebase / flutterfire

🔥 A collection of Firebase plugins for Flutter apps.
https://firebase.google.com/docs/flutter/setup
BSD 3-Clause "New" or "Revised" License
8.63k stars 3.95k forks source link

🐛 [firebase_core] GeoPoint type not parsed correctly in web builds since 0.5.2 #4073

Closed KiwiArch closed 2 years ago

KiwiArch commented 3 years ago

Bug report

Since the release of 0.5.2 web builds are not correctly parsing the GeoPoint data type.

Steps to reproduce

Using the following to parse a geopoint data type from a document snapshot:

final fireStore.GeoPoint geopoint = data['geopoint'];

throws "Error: Expected a value of type 'GeoPoint', but got one of type 'LinkedMap<String, dynamic>"

Still works as expected on mobile.

TahaTesser commented 3 years ago

Related https://github.com/FirebaseExtended/flutterfire/issues/3865

russellwheatley commented 2 years ago

This ought to be fixed with this PR: https://github.com/FirebaseExtended/flutterfire/pull/6728