반응형
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
- typescript
- code editor
- three.js
- react
- Babel standalone
- HLS
- append row
- jszip
- webrtc
- uint8array
- Game js
- Redux
- cursor-ubuntu-installer
- KakaoMap
- swagger-typescript-api
- uint16array
- how to install cursor on ubuntu
- babel
- hls.js
- node
- localization
- Excel
- html2canvas
- REST API
- multiple camera
- M3U8
- http live streaming
- segment
- Flutter
- Prism.js
Archives
- Today
- Total
목록addPostFrameCallback (1)
Never give up
Flutter - addPostFrameCallback
build가 끝나지 않은 시점에서 데이터의 변경이 일어나고 notifyListeners를 사용해서 UI를 변경시키면 레드스크린을 볼 수 있습니다 예제로 initState에서 build가 끝나지 않은 상태에서 다음과 같이 값을 변경하면 @override void initState() { super.initState(); Provider.of(context, listen: false).setNum(2); } class TestInt extends ChangeNotifier { int _num = 0; int get getNum => _num; void setNum(int value) { _num = value; notifyListeners(); //문제가 되는 부분 } } 다음과 같은 에러가 출력됩니다 ══..
Flutter
2020. 8. 3. 16:27