I'm trying to implement a way to send data back to previous route. The Navigator.of(context).pop function allows a parameter that works perfectly when used with a button-onpress. Problem is: On Android, users can also go back via the Android-specific back button, so I tried to catch this with the help of a WillPopScope-widget. Within the onWillPop parameter, I again use Navigator.of(context).pop(data), so now the job is done on Android. New problem is: Now, due to the WillPopScope widget, swipe-back gestures on iOS dont work anymore.
So, the question is: How can I send data back to previous route, no matter whether user tapped on a button I put there, tapped on Android-specific back-button or used the swipe-back gesture on iOS?
Hope it got clear :)