• 카테고리

    질문 & 답변
  • 세부 분야

    모바일 앱 개발

  • 해결 여부

    미해결

go Router redirect 에러

23.05.30 13:16 작성 조회수 504

0

스크린샷 2023-05-30 오후 1.13.06.pngThe argument type 'String?' can't be assigned to the parameter type 'FutureOr<String?> Function(BuildContext, GoRouterState)?'

goRouter 기존 버전에서 7.0으로 바뀌어서 에러가 뜨는거같은데염 ㅠㅠ

 

답변 1

답변을 작성해보세요.

0

안녕하세요.

redirect의 시그니처는 아래와 같이 변경됐습니다.

typedef GoRouterRedirect = FutureOr<String?> Function(
    BuildContext context, GoRouterState state);

새로 추가된 GoRouter 7.0 강의 섹션을 참고해주세요

감사합니다.