FlutterFlow / flutterflow-issues

A community issue tracker for FlutterFlow.
124 stars 24 forks source link

Drag and Drop with JSON fails compilation #4009

Open f-gibellini opened 3 weeks ago

f-gibellini commented 3 weeks ago

Can we access your project?

Current Behavior

When creating a Drag and Drop component needing to pass JSON data types compilation fails with error:

lib/pages/plan_trip/plan_trip_widget.dart:1322:70: Error: Type argument 'dynamic' doesn't conform to the bound 'Object' of the type variable 'T' on 'Draggable'.

Expected Behavior

Can Drag and Drop JSON objects without errors

Steps to Reproduce

Create a draggable object as a child of a dynamically generated column Make the proprties of the data JSON type, referencing to the item in the list corresponding to that element Try to compile

Reproducible from Blank

Bug Report Code (Required)

ITEekMmA8YxJpbwE+6nudcFv/AMwGlg2UIIZjNZ+awsjGeOoBIYiO8nsUEtuSOqHTVFmHlaJvFkz+a2Pi/H9LvE6ZDCqb4hO+Lt1UxDvTj2lVpeVBZCsSnEmL8FMfHKb4JmvuCJ4Osl1ZV5kwHGMJvC+b3qCf9qOYwx5e6fDbOY=

Visual documentation

does not compile

Environment

- FlutterFlow version: 5.0.2
- Platform: Windows
- Browser name and version: Chrome 129.0.6668.90
- Operating system and version affected: all, doesnt compile

Additional Information

No response

github-actions[bot] commented 2 weeks 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.

Alezanello commented 1 day ago

Hello,

I apologize for the late response. Does this issue still persist, or was it fixed in the latest FlutterFlow updates?

f-gibellini commented 1 day ago

Hello, No idea, I refractored everything to use DataStruct instead of JSON and it works fine now. I can re-open the issue in case I try again and find a problem.

Thanks, F