반응형
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 | 31 |
Tags
- react
- 간단리뷰
- AppBar
- AppleSilicon
- iMac
- Flutter
- datetime
- wrap
- ios
- 춘식
- 내돈내산
- 라이언
- TextField
- 카카오
- VSCode
- Mac
- listview
- list
- error
- swift
- 플러터
- sqflite
- M1
- database
- Android
- Git
- xcode
- GitHub
- visualstudiocode
- GetX
Archives
- Today
- Total
목록null check (1)
welcome to my blog
[Flutter] Database error - Null check operator used on a null value
main 함수에서 database 셋팅을 먼저 해주고 runApp이 실행되는데 'Null check operator used on a null value'라는 에러가 계속 발생 main 함수 제일 상위에 다음 코드 작성해주었더니 제대로 동작함 WidgetsFlutterBinding.ensureInitialized(); +) 위와같이 했는데도 같은 에러가난다면, binding이 제대로 되었는지 확인해볼것 한쪽에 binding 옵션을 주지 않았더니 같은 에러가 발생했었음 옵션 주지 않고 사용하는 방법이 있는지 확인 필요-> +)바인딩 안해도 사용할 수 있음(GetBuilder 사용하지 않는 위젯은 상관없었음) 참고 : Null Check operator used on a null value on flutte..
Flutter
2021. 11. 23. 20:22