website icon indicating copy to clipboard operation
website copied to clipboard

Documentation does not make it clear how to return data from back navigation in a scaffold.

Open lavnishhh opened this issue 1 year ago • 0 comments

Page URL

https://docs.flutter.dev/cookbook/navigation/returning-data/

Page source

https://github.com/flutter/website/tree/main/src/content/cookbook/navigation/returning-data.md

Describe the problem

The page works as intended for Navigator.pop(context, data). However, as seen in the demo, when the user presses back, null is seen in the snackbar showed, ultimately leaving a void in the original question- how do return data from a screen.

Expected fix

No response

Additional context

No response

I would like to fix this problem.

  • [ ] I will try and fix this problem on docs.flutter.dev.

lavnishhh avatar Oct 12 '24 18:10 lavnishhh