네 ,, Flutter 에서 WillPopScope 를 곧 지원 안 할 예정이라고 뜨면서, 대체제인 PopScope로 바꿔 쓰라고 경고를 띄워주고 있네요. 지금 당장 WillPopScope 를 아예 못쓰는 건 아니지만, 곧 없어질 거라고 하니, 미리미리 바꿔두시는게 좋아보입니다.
저는 Home_view 에서 하단 bottomNavigator의 index에 따라, 조건부로 뒤로가는 조건을 달아놨는데요. 수정 전 코드 알림문 'WillPopScope' is deprecated and shouldn't be used.
Use PopScope instead. This feature was deprecated after v3.12.0-1.0.pre.
WillPopScope( onWillPop: () async { if (controller.selectedPageIndex.value == 0) { bool result = await controller.onWillPop(); result == ...
#
depreciated
#
플러터
#
크로스
#
앱개발자
#
앱개발
#
앱
#
스타트업
#
개발팀
#
개발자
#
개발
#
WillPopScope
#
PopScope
#
Flutter
#
플루터