Flutter 17

setState() or markNeedsBuild() called during build

너무나 다양한 에러를 만나는 요즘.. 에러들을 기록해야 겠다는 생각이 들었다. 여기에 나의 흑역사를 기록하도록 하겠다. 나의 경우 provider 를 쓰고, ChangeNotifier 를 이용해 값이 변경 되었을 대 상태 체크를 하고자 했다. // 카테고리별로 데이터 가져오기 Future getCategory(String category) async { _isLoading = true; notifyListeners(); // 삭제하니 에러 해결 _checklist = await repository.getCategory(category); _isDone = true; _isLoading = false; notifyListeners(); return true; } 카테고리별 데이터를 가져오는 부분에서 not..