Hello FlutterFlow Team,
I'm experiencing a critical and reproducible bug where a DocumentReference parameter, passed during a Navigate To action, consistently arrives as null on the destination page. This causes the page's main StreamBuilder to fail with an "Unexpected null value" error, crashing the app.
The issue is not a simple configuration error. I have definitively proven that the DocumentReference value is valid and not-null at the source, right before the navigation action is triggered.
Scenario:
Page A (DetallesTrabajador): Displays a list of patients documents in a ListView. Each item has a "View" button.
Page B (DetallesPaciente): Is supposed to display the details of a single patient, using a Document from Reference backend query that takes a DocumentReference page parameter.
The key evidence is this:
When I add an Alert Dialog action right before the Navigate To action to display the id of the document reference, the alert successfully shows the correct Document ID. However, upon closing the alert, the navigation proceeds and the app crashes with the red screen, proving the value is lost during the navigation event itself.
https://app.flutterflow.io/project/pacientes-andres-flow-dev-o5om4s