I was trying to show a Snackbar after navigating to a new page with the Get Package. I passed the "snackbar-ingredients" as a parameter to the new widget and wanted to show it then. I got an error that indicates that the built of the widget didn't finish before I tried to show the snackbar. That obviously didn't work. I get why.. but I don't have a fitting solution.
Is there a way to wait for the build to finish before calling the snackbar?
Thanks for your help!
(PS: in another post someone said to refer to the scaffoldKey.. I am not sure how to do that in Get.snackbar())