Skip to content

Add more pages to the app. #26

Description

@paakjis

Hi. Im new to AutoRoute, I cant figure out how to make more pages with this boilerplate.
So I made something liek this.

@AdaptiveAutoRouter(
  replaceInRouteName: 'Page,Route',
  routes: <AutoRoute>[
    //RedirectRoute(path: '*', redirectTo: '/'),
    AutoRoute(page: AppStartPage, initial: true),
    AutoRoute(
      path: '/home',
      page: HomePage,
      children: <AutoRoute>[
        AutoRoute<FieldInfoPage>(
          name: 'FieldInfoRoute',
          path: 'fieldInfo',
          page: FieldInfoPage,
        ),
      ],
    ),
    signInRouter,
    signUpRouter,
  ],
)

But the problem here is that after flutters "hot reload" it triggers the AppStartPage, and opens the HomePage again.

How do I make it so it doesn't open HomePage everytime it reloads?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions