So question is a little strange, but I'll try my best to make it clear.
So we have 3 pages:
- page with list of customers
- customer info page
- customer edit page
The flow is you tap on customer in list -> router.push(CustomerInfo).then(_refreshList()) and on Customer Info page we have Edit Customer button which goes to CustomerEdit page like -> router.replace(CustomerEdit)
how can I specify that after poping the CustomerEdit screen and returning to CustomersList Page refresh function goes off?
CodePudding user response:
Executing a function after popping works like so:
Navigator.push().then(functiontThatShouldBeExecuted);