Flutter: onGenerateRoute & Custom Page Transitions & Custom Dialogs

OnGenerateRoute

routes: {
Main.routeName: (BuildContext ctx) => Main(),
LoginPage.routeName: (BuildContext ctx) => LoginPage(),
},

Custom Page Routes

class MaterialPageRoute<T> extends PageRoute<T> with  ...
PageRoute class

Extending PageRouteBuilder

PageRouteBuilder class

Pop Up Dialogs

--

--

Flutter & Node.js Full-Stack Developer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store