mapbox / mapbox/mapbox-maps-flutter
CustomPainter not working?
Nobody has claimed this yet.
- Dominant language
- Dart
- Stars
- 380
- Forks
- 204
- PR merge metrics
- No merged PRs in 30d
Description
I have a CustomPainter over the map in a Stack, and this CustomPainter was working with the [old plugin](https://github.com/flutter-mapbox-gl/maps), but with this plugin my CustomPainter.paint method gets called endlessly without any screen changes or shouldRepaint being called; why would that be, and how do I fix it?
Btw, I also cross-posted this at [StackOverflow](https://stackoverflow.com/questions/75388826/custompainter-called-endlessly), but I suspect the issue is specific to this plugin...
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported Stack setup with a CustomPainter over the map, focusing on repeated calls to CustomPainter.paint and whether shouldRepaint is invoked. Compare the behavior with the old plugin referenced in the issue and inspect the current map widget integration. Done means identifying the repaint cause and documenting a verified fix.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, flutter
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100