webfactorymk / flutter-template

Flutter template project - Simple ToDo app with scalable project structure.
https://webfactory.mk/
MIT License
166 stars 36 forks source link

_authNavState updated, but build() did not trigger. #37

Open tenSunFree opened 3 years ago

tenSunFree commented 3 years ago

When you click the return button on the upper left, it will trigger onPopPage, and then update _authNavState, but build() is not triggered. 001

If you want to really sync _authNavState, maybe you can try to change it like this.

002
dimitar-zabaznoski commented 3 years ago

I'm no expert here, but should the build method be called on pop page? Isn't that just removing one page from the stack? Can you give us a real-life scenario where you'd want this behavior? Thank you for the feedback.