DevAtlas

Learn

  • Dashboard
  • Learning Paths
  • All Categories
  • Topics

Practice

  • Interview Questions
  • Flashcards
  • Quizzes
  • Study Plans

Personal

  • Bookmarks
  • Notes
  • Progress
  • PDF Library
  • Settings
  • About
  1. Interview Questions
  2. How do you decide whether a piece of UI should be a StatelessWidget or a StatefulWidget?
0%
ScenarioBeginnerFlutter

How do you decide whether a piece of UI should be a StatelessWidget or a StatefulWidget?

Follow-up questions

  • Where would you cancel a stream subscription and why?
  • How would converting a StatefulWidget’s local state into a shared state solution change your widget?

Related topics

StatelessWidget vs StatefulWidgetFlutter Widget Lifecycle
#flutter#state#setState#architecture