FlutterFlow / flutterflow-issues

A community issue tracker for FlutterFlow.
115 stars 19 forks source link

Google maps widget only loads with the correct style the first time it is viewed on a page #3364

Open cooldude1010 opened 2 months ago

cooldude1010 commented 2 months ago

Can we access your project?

Current Behavior

I have a page with a hidden container that is viewable when the user clicks a button. The container loads information based upon which button the user pressed, the issue is that the map widget only has the correct style the first time it gets opened. So if I set the style to dark, the map will look dark the first time it is viewed. After that however, if the user stays on the page and clicks a different row, the map loads with the default style rather than the one chosen.

Expected Behavior

Google maps widget should always have the correct style displayed regardless of whether it is the first time being loaded on the page or not.

Steps to Reproduce

  1. create new project
  2. insert a stack
  3. within the stack, insert a container. Then insert another container in the stack that is hidden by default and opened when a user clicks a button. Also add a button to this container that enables the user to hide it again.
  4. add a google maps widget to the hidden container and set the style to something other than standard.
  5. view/hide the hidden container with the map widget.
  6. observe that the map widget only loads with the correct style the first time.

Reproducible from Blank

Bug Report Code (Required)

IT4kk+fl+YlIrsdF7arPbe1Fq2AXNkw2TL03qu0bGBYbCIzQB4YEaffSTFtoZOLmdGNhKEWGnkYyw+DqiNn9U/ICGAWbfaU+ybpybgzwWk2/aovTDaW0enJ7EdFWN2Ki0p+NpSZCAO9ZSC0S206UBt+QaDfsO5P6Zwh9f6PHaOI=

Visual documentation

https://github.com/FlutterFlow/flutterflow-issues/assets/69475579/363e1a5c-5118-4ddb-ac02-06c45522df30

Environment

- FlutterFlow version: 4.1.7
- Platform: web
- Browser name and version:
- Operating system and version affected:

Additional Information

No response

Alezanello commented 2 months ago

Hello!

I was able to replicate this issue. It seems that having two maps on the same page causes the second map to always load the style of the first map, rather than its own style.

Thank you for bringing this to our attention. I will forward this to the engineering team for a deeper investigation and a possible fix.

Best regards,
Azanello