In part 1 of this guide, we migrated a simple Flutter app from Navigator 1.0 to Navigator 2.0, while maintaining the exact same functionality and user experience. In part 2, we upgraded the app to support URL syncing in the web browser. We also customized transition animations to ensure a good user experience on the web. Now we will add deep linking to the mobile app.
In part 1 of this guide, we migrated a simple 2 screen app to Navigator 2.0. In keeping it simple, we did the bare minimum to upgrade from Navigator 1.0, creating only a
RouterDelegate and then using it in place of
Navigator to make navigation request.
However, this approach misses out on some key benefits of Navigator 2.0. For example, the ability to sync the URL in the address bar to the current location of the app. …
Have you hit a wall while trying to wrap your head around Flutter’s Navigator 2.0? If so, take solace in the fact that you are not alone. Many developers have complained about the complexity of the updated navigation and routing mechanism. But fortunately it doesn’t have to be so daunting.
Most guides that I came across while studying Navigator 2.0 were, in my opinion, overly complex, especially for Flutter beginners. …
Software developer. Flutter fanatic. Photographer. Perpetual student of the universe & Dreamer of dreams.