Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
Tags
- javascript
- next-auth
- useMemo
- 백준
- Python
- 사탕게임
- kakao blind recruitment
- next.js
- Flutter
- context api
- React.memo
- 이메일 인증
- storybook
- useEffect
- 프로그래머스
- visual test
- typescript
- custom hook
- suffixicon
- Github Actions
- TextFormField
- react
- 리팩토링
- interaction test
- 피보나치 함수
- Props Drilling
- Vanilla JavaScript
- React-hook-form
- ZOD
- locale data
Archives
- Today
- Total
Dev Diary
flutter locale data has not been initialized 본문
SMALL
table calendar 패키지를 이용해서 bottom sheet에 캘린더를 넣은 뒤 기간 필터링 ui에서 직접설정 옵션을 선택하면 달력이 아래서 위로 올라오는 화면을 구현하려고 TableCalendar 관련 코드를 모두 작성하고 실행해보았더니 "flutter locale data has not been initialized"라는 오류가 발생했다.
intl 패키지를 통해 main.dart에서 로컬 설정을 초기화해주었더니 에러가 사라졌다.
void main() async {
await initializeDateFormatting(); // 이 부분을 추가
// 다른 코드들 ...
runApp(const ProviderScope(child: MyApp()));
}
LIST
'Trouble Shooting' 카테고리의 다른 글
Github Action: Module not found: Error: Can't resolve ~ in ~ (0) | 2024.10.03 |
---|---|
Stack 위젯 내부 children들 간의 z-index (0) | 2024.03.11 |
TextFormField의 suffixIcon 크기가 안바뀔때 (0) | 2024.03.08 |
useEffect 내에서 비동기 작업 처리하기 (1) | 2023.11.27 |
next-auth signIn() Error Handling (0) | 2023.05.20 |