FlutterFlow / flutterflow-issues

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

Big bug with json parameter #761

Closed blondie63 closed 1 year ago

blondie63 commented 1 year ago

Has your issue been reported?

Current Behavior

When i define a json parameter for a component i can't set it as required !! This means that the FF verification system does not see any errors but then the build fails !! Serious FF bug

Expected Behavior

The lack of this setting actually prevents you from being able to pass json variables to components

Steps to Reproduce

  1. ha a json coming from api call like this: "reasons": [ { "id": 2, "name": "No reason" }, { "id": 4, "name": "Extraordinary rest shift" }, { "id": 6, "name": "Holiday" }, { "id": 14, "name": "Seats not available" } ]

    Pass it as parameter where you have a dropdown and assign values to id %& labels to name

Reproducible from Blank

Bug Report Code

IT4wlsmAsI1Nobhe+KqJb/pvoCMvIjo2aJ0rk8IbGSs8JJToPLAUZ8zBM05vZry6SkFpeWCZpGEyxvfqud/fEPYCYE2WGJxI+rVQeg/gZE6gMs2KPIe/fW1QFp9hf2Ky1p2zpSRBBOteR0Ihw2GIIvDLVhXaJpO3CzEnDfKlKdeK2SrDX1iXc2URm05KZDPz

Context

I'm trying to do something elementary, a dropdown that displays strings and sets an id to the user's choice

Visual documentation

FF-3 1-booking-prj-no-errors FF-3 1-booking-prj-build-fail

Additional Info

No response

Environment

- FlutterFlow version: 3.1 April 7
- Platform: Web
- Browser name and version: Chrome 112.0.5615.49 
- Operating system and version affected: MacOS Ventura 13.3.1
hariprasadms commented 1 year ago

Hi @blondie63 - Can you add more details about the statement - id %& labels. Passing a dropdown parameter value for above json data structure is working as expected. Please add a quick video showing the issue please.

blondie63 commented 1 year ago

Hi @hariprasadms In my project I got around the problem using only the options, I see in the day or tomorrow at the latest to create a test project to show the error, assuming that it still exists since in the meantime I have seen two FF updates which however always report the version 3.1 of 13 April

Franco98404 commented 1 year ago

Hi @blondie63, I think this issue can be useful: https://github.com/FlutterFlow/flutterflow-issues/issues/394

blondie63 commented 1 year ago

394

Hi Franco, so this confirm FF bug..

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 7 days with no activity. If there are no further updates, a team member will close the issue.

agreaves commented 1 year ago

Hi @blondie63, thanks for the bug report! I've been able to reproduce this issue, and it should be fixed on our next release! 🙂

Sorry for the delay in fixing, and thanks again for the heads up!