개발(합니다)/시나브로(이슈)

[Flutter] error: The parameter 'event' of the method 'AlwaysWinPanGestureRecognizer.addAllowedPointer' has type 'PointerDownEvent', which does not match the corresponding type, 'PointerEvent', in the overridden method, 'DragGestureRecognizer.addAllowedP..

otrodevym 2021. 8. 10. 00:00
반응형

상황

mac os m1에서 에뮬레이터를 이용해서 개발하던 중 

Flutter를 개발하던 중 Color Picker를 사용하기 위해서

가장 많이 사용하는 라이브러리(flutter_colorpicker: ^0.5.0)를 추가하고 

추가하고 import했는데 에러가 발생했습니다.

 

문제 파악

flutter는 해외 자료가 많아 찾아보니 버전 문제인걸로 확인했습니다.

https://stackoverflow.com/questions/68022011/error-the-parameter-event-of-the-method-alwayswinpangesturerecognizer-whe

해결 방법

버전은 0.5.0에서 0.4.0으로 다운그레이드하여 사용합니다.

 

flutter_colorpicker: ^0.4.0

 

반응형