Mosses
ย ยทย [moe-zus]

Refresh ListView upon object selection

Resolved

๐Ÿ‘‹

Been trying to find a solution but keep running into issues. I have a SwitchListTile widget inside a StickyHeader that is set to show a collection of queries when unselected, and update said query to only show items posted by the logged-in user. I tried variations of setting conditions that will refresh the query within the list view depending on the state of the switch widget, but testing both in test and run modes doesn't produce the expected result.

Guidance on how to best set up this requirement is appreciated. ๐Ÿ™

UPDATE

I discovered the following execute callback method and did my best to set it up as instructed. As you can see in the screenshot below, when toggling the switch, the expectation is to rerun the query and refresh the listview. I know the action conditions are working since I did put in a couple of tests such as "navigate back", but no matter what I do, neither in test nor run modes, the listview updates according to my settings. So, not sure if the updates are not being reflected in the test environment, or if there's something wrong with my settings. ๐Ÿคท

4
3 replies