flutter_cupertino_will_pop_scope icon indicating copy to clipboard operation
flutter_cupertino_will_pop_scope copied to clipboard

Passing data by Navigator.pop(context, value) doesn't work

Open sst4tic opened this issue 1 year ago • 0 comments

when i try to pass data by Navigator.pop(context, value), and accept it with

Navigator.push( context, CupertinoPageRoute(builder: (context) => ProductScreen(product: productItem))) .then((value)

my value always comes empty. I am using your package.

        ConditionalWillPopScope(
          onWillPop: () {
            print('POP');
            Navigator.pop(context, product);
            return Future.value(true);
          },
        shouldAddCallback: false,

sst4tic avatar Mar 16 '23 09:03 sst4tic