| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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
- 플러터
- 깃
- docker
- c#
- github
- C++
- c언어
- C언어 포인터
- 유니티
- dart 언어
- Algorithm
- C# delegate
- 도커
- Python
- c# 윈폼
- Unity
- Flutter
- git
- c# 추상 클래스
- jupyter
- gitlab
- c# winform
- 구조체
- Data Structure
- HTML
- vim
- 다트 언어
- jupyter lab
- Houdini
- 포인터
Archives
- Today
- Total
목록flutter statefulwidget vs statelesswidget (1)
nomad-programmer
[Flutter] StatefulWidget 클래스 사용 시점
StatelessWidget 클래스에 TextFormField를 사용해도될까? TextEditingController는 렌더링간에 유지되어야하는 클래스 인스턴스이다. 그러나 StatelessWidget 클래스에 정의하면 기본적으로 모든 업데이트 후 다시 만든다. 그러므로 TextFormField 클래스를 사용할 예정이면 StatefulWidget 클래스로 만들어야 한다. Flutter 공식문서에서도 TextFormField 클래스를 생성할 때면 StatefulWidget으로 생성하라고 나와있다. flutter.dev/docs/cookbook/forms/text-field-changes Handle changes to a text field How to detect changes to a text fiel..
Programming/Flutter
2020. 10. 18. 16:31