How to Clear Selected Rows in DataTable After Refresh?

Actions & Logic

Hi everyone,

I’m using a DataTable in FlutterFlow where users can select rows and click an "Approve" button. After approval, I refresh the list to remove those rows from the table. However, the selected state remains — the selection stays active even though the rows are no longer visible.

Is there a way to programmatically clear or reset the selected rows in FlutterFlow's DataTable after data refresh?

I couldn’t find any built-in “Clear Selection” action. Any workaround, like resetting the selection state manually or via custom code, would be much appreciated.

Thanks!

What have you tried so far?

-I refresh the data source after approval (works fine).

-Tried using local state to manage selection, but it doesn’t sync with FlutterFlow’s built-in selection system.

-Looked for a built-in “Clear Selection” action, but I couldn't find any.

-Tried forcing a rebuild using a conditional widget with a toggle, but selection still remains.

Did you check FlutterFlow's Documentation for this topic?
No
4
1 reply