When I go routes forth-and-back are page states preserved?

Viewed 16

Is a. page widget; b. its state recreated anew or remains the same as it was on the previous show of the same page by:

  1. Navigator.pushNamed()
  2. Navigator.pop()?
1 Answers

The state of a previous widget is preserved after a push from the navigator. The gestures are just ignored for the current widget while a new one is pushed into frame.

flutter docs

Related