auto_route 1.0.0-beta.5+1 auto_route: ^1.0.0-beta.5+1 copied to clipboard
AutoRoute is a declarative routing solution, where everything needed for navigation is automatically generated for you.
class HomeScreen extends StatelessWidget{}
class LoginScreen extends StatelessWidget {}
@MaterialAutoRouter(
routes: <AutoRoute>[
AutoRoute(page: HomeScreen, initial: true),
AutoRoute( page: LoginScreen, fullscreenDialog: true),
],
)
class $AppRouter {}