GoRouter 질문
저도 ErrorScreen 까지 구현하면서 go가 실행되지 않는 문제를 겪었습니다.그런데 _router 선언 부분을 수정하니 정상적으로 go 가 실행되네요.아래 강사님 답변처럼 재시작도 해주시기 바래요. void main() { runApp(const _App()); } // _router 를 다음과 같이 처리하였습니다. final _router = GoRouter( initialLocation: '/', errorBuilder: (context, state) { return ErrorScreen(error: state.error.toString()); }, routes: [ GoRoute( path: '/', builder: (context, state) => HomeScreen(), routes: [ GoRoute( name: 'one', path: 'one', builder: (context, state) => OneScreen(), routes: [ GoRoute( name: 'two', path: 'two', builder: (context, state) => TwoScreen(), routes: [ GoRoute( name: ThreeScreen.routename, path: 'three', builder: (context, state) => ThreeScreen(), ), ], ), ], ), ], ), ], ); class _App extends StatelessWidget { const _App({Key? key}) : super(key: key); @override Widget build(BuildContext context) { return MaterialApp.router( // routerConfig: _router, debugShowCheckedModeBanner: false, routeInformationProvider: _router.routeInformationProvider, routeInformationParser: _router.routeInformationParser, routerDelegate: _router.routerDelegate, ); } }