Skip to content

Instantly share code, notes, and snippets.

@BurningDroid
Last active March 12, 2019 15:11
Show Gist options
  • Save BurningDroid/2ee8598af7ac3689d519515bf1120257 to your computer and use it in GitHub Desktop.
Save BurningDroid/2ee8598af7ac3689d519515bf1120257 to your computer and use it in GitHub Desktop.
flutter

Flutter Summary

1. Stateless/Stateful widget

  • Stateless 위젯은 불변으로, 해당 위젯의 프로퍼티 값이 final로 고정
  • Stateful 위젯은 위젯의 생명 주기 동안 변경될 수 있는 상태를 갖고 있다.
    1. Stateful 위젯을 구현하기 위해 2개의 클래스가 필요:
      • StatefulWidget class
      • State 클래스
    2. StatefulWidget 클래스는 불변이지만, State 클래스가 위젯의 생명주기 동안 유지된다.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment