[Flutter] 프로젝트 초기 설정 - 라우팅 (feat. Riverpod)
앞서 말했든 이번 프로젝트에선 Riverpod를 활용할 예정이기에, 라우팅 기능이 내장되어있는 GetX와 달리 라우팅을 따로 설정해줘야 했다.
가장 인기있는 라우팅 라이브러리인 GoRouter를 활용하기로 결정했다. [링크]
GoRouter를 사용하는 기본적 라우팅 예제는 다음과 같다:
import 'package:go_router/go_router.dart';
// GoRouter configuration
final _router = Go...
cherrie.hashnode.dev4 min read