Open utterances-bot opened 2 years ago
컴파일시 아래와 같은 에러가 생기는 이유가 뭔지 알려주시면 감사하겠습니다
Launching lib\main.dart on AOSP on IA Emulator in debug mode...
lib\main.dart:1
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/provider-6.0.3/lib/src/selector.dart:75:29: Error: The method 'selector' isn't defined for the class 'Selector0
@dongguntechnology
Selector
라는 함수를 찾지 못해서 에러가 나고 있는거 같습니다.
아레와 같이 context.select
함수를 사용하고 계신가요?
final name = context.select((Person p) => p.name);
혹시 context.selector
를 사용하고 계신지 확인해보시기 바랍니다.
[Flutter] Provider - 이번 블로그 포스트에서는 Flutter에서 전역 상태 또는 위젯끼리 상태를 공유하기 위해 Provider를 사용하는 방법에 대해서 알아보겠습니다.
이번 블로그 포스트에서는 Flutter에서 전역 상태 또는 위젯끼리 상태를 공유하기 위해 Provider를 사용하는 방법에 대해서 알아보겠습니다.
https://dev-yakuza.posstree.com/ko/flutter/provider/