notify the entire ui when consume a specific provider #3669
fazaamajdeddine
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hi , i have a feature that work fine in my app but not as expected , a user in my app have organisations to manage it , each organisations has their data depend on it , for exemple user will manage and see orders for a specific organisation , in my ui, i implement a menu that contain a list of organisation , when user select a specific oarganisation , i want to update the data and context of all the app to be depend on the slected organisation , because i retrieve and manage data from the server with a querry parameter (the organisationId) , the data is retrieved as i expected and depend on the organisation selected , but my ui was not updated immediately untril i refresh the list of items or restart my app :
the menu from where i select an organisation and save it locally and send the organisationId in querry parameter each time i will manage data in my app is inside teh futurebuilder.
is there any way to update the context of my app immediately , for exemple i implement an extension on Buildcontext and use it in main of my app to notify the entire ui , or is there any way resolve this ,
Beta Was this translation helpful? Give feedback.
All reactions