When I click a button on 'Page1" page, A bottomSheet shows. There I would change some data and update an app state by clicking on a button. then the bottom sheet closes.
Now on the Page1, I have a listview that pulls data from backend using a filter that comes from the bottom sheet. when I use supabase as the backend , the listview refreshes data according to the App State. but I need to use custom API call. in that case the list view doesn't refresh the backend.
How can I use the callback method on a bottomsheet to trigger an action on the page to refresh the API call of the listview?
Bottom Sheet Callback
8
3 replies