Member-only story
Flutter Navigator 2.0: The Good, The Bad, And The Ugly
No one, including the Flutter SDK, really shows Navigator 2.0. That might be due to the good, the bad, and the ugly of using navigator 2.0 and several people being lazy. Let me show you all the tricks behind using Navigator 2.0.
What Are We Using
The Navigator 2.0 implementation in the Flutter SDK is a bit raw. The best 3rd party package to use Navigator 2.0 is the one in-fact that is authored by the Flutter SDK team called Go Router:
What make’s it good as far as approach to interfacing with the Navigator 2.0 API is the easy way we can nest navigators. For example, I can nest navigators such as:
So I am going to take the Material Design 3 Demo in the Flutter SDK Samples and convert it to using Navigator 2.0 API and the secret tricks…