az_navigation 0.0.2
az_navigation: ^0.0.2 copied to clipboard
Flutter navigation with transition
Az Navigation #
Step 1: Setup MaterialApp #
Set the navigatorKey in your MaterialApp so AzNavigation can work without BuildContext:
return MaterialApp(
navigatorKey: AzNavigation.navigatorKey, // Required for AzNavigation
Step 2 #
Simple navigation helper with animated page transitions.
AzNavigation.to(const HomePage(), transition: Transition.rightToLeft);