FlutterFlow / flutterflow-issues

A community issue tracker for FlutterFlow.
130 stars 26 forks source link

[Supabase] FutureBuilder not fetching data correctly for multiple columns in Kanban #4927

Open MendesCorporation opened 1 day ago

MendesCorporation commented 1 day ago

Can we access your project?

Current Behavior

When using a FutureBuilder inside a Kanban-style layout with multiple columns, only the data for the first column is being fetched correctly from the database. Subsequent columns do not execute their respective queries and display incorrect or no data.

This issue seems to occur because the same Completer instance is being reused for all columns, causing only the first query to complete successfully. Each column should have its own Completer to handle independent queries and data fetching.

Expected Behavior

Each column in the Kanban layout should fetch its data independently and display the corresponding results.

Steps to Reproduce

  1. Create a Kanban-style layout with multiple columns.
  2. Use a supabase query to fetch data for each column.
  3. Ensure the query for each column is distinct (e.g., filtering by etapa or stage).
  4. Observe that only the first column fetches and displays data correctly.

Reproducible from Blank

Bug Report Code (Required)

IT4olfLqx5BOvuZE7YSJYO9V/CQWNVB6aIE818pBazwbfe+uB4kqevfOTERvZ9/hT3N+ImD9p2oW0ejruM7+G8FfJQSeR4R41s1ISQriWT6teJSOFJWgPn97J55gGlCs3KSnoRBBJrBtS04t3TiAG9iXaB3sN5DpOkQWDq/LZO4=

Visual documentation

image image

Environment

- FlutterFlow version: v5.0.11+ 
- Platform: desktop
- Browser name and version:
- Operating system and version affected: windows 11

Additional Information

No response

Alezanello commented 15 hours ago

Hello, and thank you for bringing this to our attention. Would it be possible for you to recreate this issue in a small project containing just the necessary information to replicate it? I have not been able to replicate the issue on my end.

Testing within a new blank project, containing only the essential elements to demonstrate the problem, might help us identify the cause more effectively.