ismailyegnr / expandable_datatable

A flutter package for viewing and editing data in a table view with expandable rows.
https://pub.dev/packages/expandable_datatable
MIT License
9 stars 10 forks source link

Table View Not Updating When Data Changes via Provider #4

Open donghune opened 1 year ago

donghune commented 1 year ago

Currently, there is an issue where the table view is not automatically updating when data is changed through the provider. In such cases, it is necessary to perform an action like displaying a specific view or hitting a refresh button to reflect the data in the table.

Launch the app and display the table view. Update the data through the provider. Observe that the table view does not update automatically. After displaying a specific view or hitting a refresh button, the data updates in the table.

The table view should update automatically when the data changes through the provider. Users should not have to perform additional actions to see real-time data updates.

Operating System in use: web App Version in use: latest (0.0.7) Provider Library and Version in use: 6.0.5 Assistance is needed to address this issue. Thank you.

example: https://github.com/donghune/expandable_datatable_example

rafa160 commented 11 months ago

Idk with you find the solution, but I had the same problem. What I did was wrap in a streambuilder and this should work.