当我向 router.dart 添加新路由并运行构建运行程序时,我得到 Route must have a page or a redirect destination Error
下面是我在 router.drat 中的代码:
@MaterialAutoRouter(
replaceInRouteName: 'Page,Route',
routes: <AutoRoute>[
AutoRoute(
path: '/',
page: SplashPage,
),
AutoRoute(
path: 'signInPage',
name: 'SignInRouter',
page: SignInPage,
),
AutoRoute(
path: 'noteOverviewPage',
name: 'NoteOverviewRouter',
page: NoteOverviewPage,
),
AutoRoute(
path: 'todoFormPage',
name: 'todoFormRouter',
page: TodoFormPage,
),
],
)
class $AppRouter {}