Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: NoSuchMethodError: The getter 'iterator' was called on null. E/flutter ( 4735): Receiver: null #10

Closed
gadishimwe opened this issue Jun 24, 2020 · 3 comments

Comments

@gadishimwe
Copy link

gadishimwe commented Jun 24, 2020

Hi @Shark01. I'm getting this error every time I try to pass polylines from either googleMapPolyline.getCoordinatesWithLocation() or googleMapPolyline.getPolylineCoordinatesWithAddress() to GoogleMap widget. And above all, I'm getting null from googleMapPolyline.getCoordinatesWithLocation() which refers to this same issue #2.

Any help would be much appreciated. Thanks

This is my flutter doctor by the way,

Gads-MBP:~ gad$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.17.4, on Mac OS X 10.15.5 19F101, locale en-RW)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 11.5)
[✓] Android Studio (version 4.0)
[✓] VS Code (version 1.46.1)
[✓] Connected device (1 available)

• No issues found!
Gads-MBP:~ gad$

@gadishimwe
Copy link
Author

gadishimwe commented Jun 24, 2020

Fixed the issue. It was my code, I wasn’t waiting to get the coordinates first before pass it to GoogleMap()

Hi @Shark01. I'm getting this error every time I try to pass polylines from either googleMapPolyline.getCoordinatesWithLocation() or googleMapPolyline.getPolylineCoordinatesWithAddress() to GoogleMap widget. And above all, I'm getting null from googleMapPolyline.getCoordinatesWithLocation() which refers to this same issue #2.

Any help would be much appreciated. Thanks

This is my flutter doctor by the way,

Gads-MBP:~ gad$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.17.4, on Mac OS X 10.15.5 19F101, locale en-RW)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 11.5)
[✓] Android Studio (version 4.0)
[✓] VS Code (version 1.46.1)
[✓] Connected device (1 available)

• No issues found!
Gads-MBP:~ gad$

@shakirsamoon
Copy link
Owner

Hello @gadishimwe
I'm glad that you fixed your issue by yourself.
And I want you to inform that I have discontinued maintaining this package. So use it at your own risk.
If you need to add features, please feel free to fork the repository and use it.

@gadishimwe
Copy link
Author

No problem. Thanks for the response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants