Closed anatta-feng closed 2 years ago
I haven't done this myself since I haven't measured any severe performance impacts in my own apps, but you could set maintainState
property to false
when navigating between routes. This has some caveats, of course, but as long as you're aware of them it could help out.
https://api.flutter.dev/flutter/widgets/ModalRoute/maintainState.html
This may improve performance and is more suitable for certain business scenarios