mapbox / mapbox/mapbox-maps-flutter

CustomPainter not working?

Open
#75 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.