Skip to content
This repository has been archived by the owner on Sep 20, 2022. It is now read-only.

Migrate to Navigator 2.0 #22

Open
aabounegm opened this issue Feb 13, 2022 · 1 comment
Open

Migrate to Navigator 2.0 #22

aabounegm opened this issue Feb 13, 2022 · 1 comment
Assignees

Comments

@aabounegm
Copy link
Collaborator

aabounegm commented Feb 13, 2022

The current implementation uses the old Navigator 1.0, and while it is not deprecated, it uses the imperative style and is very verbose. It also requires importing the other screen and constructing it manually, which breaks SRP.
Navigator 2.0 is more declarative and gives finer control over the navigation stack and isolates the job of navigation from the screen rendering.
This can be achieved using one of the following methods/libraries:

The Flutter routing packages usability research report is a good starting point

@aabounegm
Copy link
Collaborator Author

For reference, the last instance of the router when it was written using Navigator 2.0 can be found here (It was removed in this commit: aabounegm/phrase_recorder@2e5ae90)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants