Skip to content

[google_maps_flutter]Certain map updates don't take effect in TLHC mode #103686

@NikosTsesmelis

Description

@NikosTsesmelis

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

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work lista: platform-viewsEmbedding Android/iOS views in Flutter appsc: regressionIt was better in the past than it is nowfound in release: 3.0Found to occur in 3.0found in release: 3.1Found to occur in 3.1has reproducible stepsThe issue has been confirmed reproducible and is ready to work onp: mapsGoogle Maps pluginpackageflutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyplatform-views: tlhcIssues specific to the Android Texture Layer Hybrid Composition platform views backendr: fixedIssue is closed as already fixed in a newer versionteam-androidOwned by Android platform teamtriaged-androidTriaged by Android platform team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions