You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This plugin is really awesome, but it only has a little problem when you try to make the stories dynamics with Provider plugin, because when you want to watch the changes of the stories array with provider the AdvStory plugin doesn't redraw and when you click on a story it throw the following error, because it didn't update the list in the widget. ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════ The following RangeError was thrown building: RangeError (index): Invalid value: Only valid value is 0: 7
Is there any way to make this plugin work listening to a provider variable ?
The text was updated successfully, but these errors were encountered:
@emiliodallatorre I forgot to put here a provisional solution that I found. if I remember correctly I could solve this updating the data with provider but then using setState((){}); to make the page reload and with that you have the stories updated successfully. It is not the best solution, but could help. Hope it helps you too
@emiliodallatorre I forgot to put here a provisional solution that I found. if I remember correctly I could solve this updating the data with provider but then using setState((){}); to make the page reload and with that you have the stories updated successfully. It is not the best solution, but could help. Hope it helps you too
Thanks!
I'd be very thankful if you could give me more infos. I suspect that keeping the controller referenced may prevent the update even with a setState.
This plugin is really awesome, but it only has a little problem when you try to make the stories dynamics with Provider plugin, because when you want to watch the changes of the stories array with provider the AdvStory plugin doesn't redraw and when you click on a story it throw the following error, because it didn't update the list in the widget.
══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════ The following RangeError was thrown building: RangeError (index): Invalid value: Only valid value is 0: 7
Is there any way to make this plugin work listening to a provider variable ?
The text was updated successfully, but these errors were encountered: