에러:
flutter: Error: Could not find the correct Provider<HotPlaceProvider> above this HotPlacePage Widget
To fix, please:
* Ensure the Provider<HotPlaceProvider> is an ancestor to this HotPlacePage Widget
* Provide types to Provider<HotPlaceProvider>
* Provide types to Consumer<HotPlaceProvider>
* Provide types to Provider.of<HotPlaceProvider>()
* Ensure the correct `context` is being used.
해결
MainPage.dart에서 Multiprovider에 해당 Provider를 ChangeNotifierProvider로 등록한다
반응형
'인포테인먼트 - development > flutter' 카테고리의 다른 글
[flutter] /bin/sh: ~~~/flutter/packages/flutter_tools/bin/xcode_backend.sh:Operation not permitted 에러해결 (0) | 2020.07.31 |
---|---|
[flutter] showModalBottomSheet() 테두리 수정 (0) | 2020.07.06 |
[flutter] Row긴한데 기본적인 정렬이 들어가야할 때 : Stack + Align (0) | 2020.06.19 |
[flutter] Flexible (0) | 2020.06.18 |
[flutter] Future, 그리고 async await (0) | 2020.06.18 |
댓글