concept fly in category flutter

This is an excerpt from Manning's book Flutter in Action.
The advantage to dynamic routing is that it’s flexible. You can have a super complicated app without ever declaring a route, because you can create new pages on the fly. The Flutter Navigator also gives you the option of declaring routes and pages, if you want to take the static approach. And you can (and probably will) mix and match static routes and “on-the-fly” routes.
Routing on the fly is the idea that you can route to a page that doesn’t exist until it’s generated in response to an event. For example, you may want to navigate to a new page when the user taps a list item. You don’t have to establish this route ahead of time, because routes are just widgets. Here’s some example code.
Listing 7.11. Example code showing routing on the fly
void _showListItemDetailPage() async { await Navigator.push( #1 context, MaterialPageRoute( #2 builder: (context) => SettingsPage( settings: settings, ), fullscreenDialog: true, #3 ), ); }In Flutter, everything that seems like a new widget on the route stack is a route. Modals, bottom sheets, snack bars, and dialogs are all routes, and these are perfect candidates for routing on the fly.