FlutterFlow / flutterflow-issues

A community issue tracker for FlutterFlow.
121 stars 18 forks source link

Mapbox API Key widget is ignoring a token that's derived from an App Constant #3616

Open monocat opened 2 months ago

monocat commented 2 months ago

Can we access your project?

Current Behavior

Static map only works when api token is pasted in the Mapbox API key field

Expected Behavior

Regardless of how the api key is entered, the static map should load.

Steps to Reproduce

  1. Generate MapBox API Key
  2. Create page with two static map widgets
  3. Add key in field manually in widget (1)
  4. Add key as a constant variable in widget (2)
  5. Run test

Reproducible from Blank

Bug Report Code (Required)

IT4olsmB289OxL1E18/QdflanSQQKXohUOYNlspBZywgfZzzBLN/fPfQPxJWYMTmTFFPMWG2p14KzPzVhdjLFMYCHzmdQaJb/qt6Fg3yWjiieKmTF7rhQH96L99NChXD06SVhBZCKtNeSlom2DqmF+yWVgjUQoTFIEQ4Sq/LZO4=

Visual documentation

constant mapbox api mapbox api not working as constant

Environment

- FlutterFlow version: v4.1.82
- Platform: MacOS
- Browser name and version: Brave Version 1.68.137 Chromium: 127.0.6533.100 (Official Build) (x86_64)
- Operating system and version affected: MacOS, iOS

Additional Information

Was working last time I checked, which was about a week ago or so.

paulperez-dev commented 2 months ago

Hi @monocat! On the View Code option, I saw the following:

image.png

Can you please try removing the widget and adding it again? The constant value should refresh.

monocat commented 2 months ago

Thanks for looking into it @paulperez-dev Took those actions but it didn't help. Also, created a new constant "map" and deleted the older one. Same results no matter what I did. I did notice though that the old constant "mapBoxApi" is still showing in debug. Took several actions: login/logout, hard refresh browser, etc, but had no luck.

image image

paulperez-dev commented 2 months ago

Hi @monocat, I was able to reproduce the issue, I will send it to the ENG team so they can work on this!