Skip to content

Try to get and write firebase geopoints to and from JSON using freeezed (or manually whatever works)

Notifications You must be signed in to change notification settings

FREEW0RK/geopoint_test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

geopoint_test

Try to get and write firebase geopoints to and from JSON using freeezed (or manually whatever works) that I can use these geopoints automatically to create custom marker via Google maps. I would also like to use geoflutterfire to create markers in the map directly, but can't find a version that works with my package versions.

I would also be grateful for any kind of code that works with a custom datatype in by fromJson and toJson in freezed. Maybe I could translate it to geopoints then.

Running the build goves this error:

S D:\APPDEV\geopoint_test\geopoint_test> flutter pub run build_runner build --delete-conflicting-outputs Deprecated. Use dart run instead. Resolving dependencies... (7.1s) Got dependencies. Building package executable... (18.2s) Built build_runner:build_runner. [INFO] Generating build script completed, took 892ms [INFO] Precompiling build script... completed, took 29.8s [INFO] Building new asset graph completed, took 11.0s [INFO] Checking for unexpected pre-existing outputs. completed, took 11ms [WARNING] No actions completed for 15.3s, waiting on:

  • riverpod_generator on lib/main.dart
  • riverpod_generator on test/widget_test.dart
  • riverpod_generator on lib/place.dart

[INFO] Generating SDK summary completed, took 25.9s [WARNING] No actions completed for 34.5s, waiting on:

  • riverpod_generator on lib/place.dart

[SEVERE] json_serializable on lib/place.dart:

Could not generate fromJson code for location. To support the type GeoPoint you can:

Thank you very much for any kind of help!!

About

Try to get and write firebase geopoints to and from JSON using freeezed (or manually whatever works)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published