Flutter에는 Hot reload와 Hot restart를 사용할 수 있다.
-
매번 compile & run 을 해야하는 번거로움을 덜어준다.
-
변경된 코드의 부분만 적용해 짧은 시간 내에 simulator를 통해 화면을 출력할 수 있다.
-
Hot reload [번개 모양 아이콘]
- state를 유지하며, app의 build method를 재실행한다.
- 코드 변경 후에 저장하면 자동으로 Hot reload가 실행된다.
-
Hot restart [번개 모양 아이콘 우측]
- stless 새로운 state를 생성하면서 app을 reset한다.
tip!
- stless 입력 → stateless widget 자동 생성
반응형
'Flutter' 카테고리의 다른 글
[Dart] Final vs Const (0) | 2021.03.09 |
---|---|
[Flutter] A RenderFlex overflowed by 58 pixels on the right (0) | 2021.03.04 |
[Flutter] SafeArea (0) | 2021.02.10 |
[Flutter] Icon 사진 변경 (0) | 2021.02.10 |
[Flutter] BMI Calculator - Building Flutter UI for Intermediates (0) | 2020.01.16 |