79652503

Date: 2025-06-04 09:47:25
Score: 0.5
Natty:
Report link

You can pass data back to the previous page by passing the data to the Navigator.pop function.

ScreenB.dart

Navigator.pop(context, yourStringData);

Catch it like follows

ScreenA.dart

final result = await Navigator.push(
  context,
  MaterialPageRoute(builder: (_) => ScreenB()),
);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: mariko