I have a task that will run in the background (in an isolate) and when it finishes, I want to show a Snackbar
. However, the user may navigate to a different screen from the one where the task was initiated. How do I show an 'app-level' Snackbar
, not bound to any particular screen?
Edit: I found this: How to show a SnackBar from async executions when no context is available?, has some good information and option 1 (Display errors in page scaffolds) seems to be what I want, but I need to implement all by myself. I was hoping for something built in into Flutter.