-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Description
I have a complex screen that includes a PageView that shows search results on the bottom, on top of a google map that has custom markers showing the price of every item.
As i swipe and change the page of the pager the markers are updated so that the selected item is focused.
This is working fine with flutter 2.10.5 but not with 3.0.0. I have the same version of google map plugin in both so this is not responsible for the bug.
Now with flutter 3.0.0 the screen doesn't seem to be refreshing correctly when the markers change. It is an irregular behaviour that sometimes they refresh correctly sometimes not.
When the bug kicks in and the markers are not updated if i scroll the map even a little then the screen is repainted correctly.
It seems to me that somehow the flutter framework decides that not enough has changed in the screen to repaint it which leads to the ui refreshing when the whole map is moved.
Also it be only an Android related problem as in IOS it seems to be working fine to me.
Could this be related to the partial rebuilds that were introduced?
Can I somehow disable the partial rebuilds to test if this is indeed at fault?
It is really difficult to provide a working example as this is a pretty complex code that i am using.
This bug is making it impossible for me to upgrade to flutter 3.0.0
[✓] Flutter (Channel stable, 3.0.0, on macOS 12.3.1 21E258 darwin-arm, locale en-GR)
• Flutter version 3.0.0 at /Users/nikostsesmelis/Tools/flutter/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision ee4e09c (3 days ago), 2022-05-09 16:45:18 -0700
• Engine revision d1b9a6938a
• Dart version 2.17.0
• DevTools version 2.12.2