Resolving imports for custom widgets

Custom Code

I'm playing around with making my own version of the Google Maps widget since the FF one is missing some things I want to do. I'm having trouble getting even a basic version of it working due to not getting the imports working.

I watched the FF custom widget video and James Nocode custom widget video. I'm able to get a custom widget working from pub.dev. But I'm having trouble with the Google Maps one.

This is the google maps one I'm using: https://pub.dev/packages/google_maps_flutter

It has a lot of extra imports that I can't get to resolve. I initially tried leaving them out thinking I would add them if I needed to use them, and that seemed to work (I could compile it without errors) but when I ran in Test Mode, I got an error referring to heatmap, so tried to add that one back in.

But it doesn't resolve:

I tried adding other dependencies (the last 2 in this list), but they haven't worked and I'm just kind of guessing.

How can I tell exactly what I should be adding to get that import working? It seems like there is a methodical way I can track it down, or fix the path, etc. but it's eluding me so far.

Appreciate any guidance.
Thanks,
Craig

What have you tried so far?

Lots of testing, reading, videos, etc.

Did you check FlutterFlow's Documentation for this topic?
Yes
4
14 replies