pseong

[flutter] no tabcontroller for tabbar 오류 해결 본문

프론트엔드/플러터

[flutter] no tabcontroller for tabbar 오류 해결

pseong 2021. 12. 22. 14:34

코드상에 문제가 있는 줄 알고 한참을 헤멨다.

코드상 문제가 있는 것이 아니라, hot reload 대신 hot restart를 해야 한다.

 

이 버튼이 hot restart 버튼이다.

 

이것 대신 내가 쓴 방법은 터미널에서 flutter clean을 친 다음, pubspec.yaml의 우측 상단에 있는 pub get을 눌러서 문제가 해결되었다.

Comments