This course is available as part of the raywenderlich.com Professional subscription. To learn more click here
Pro

Stateful vs Stateless Widgets in Flutter

Apr 8 2021 · Video Course (36 mins) · Beginner

Dive into the world of the two main types of widgets in Flutter and learn about their features and differences and when to use each one.

Version

  • Dart 2.8, Flutter, VS Code 1.48

Stateful vs Stateless Widgets in Flutter

Get a brief overview of widgets and the concept of immutability and also create a simple UI using Stateless Widgets.

1

See how Stateful Widget differs from Stateless Widget with its ability to store a mutable state.

2

Learn about the lifecycle methods that come with a State object and see how they can be triggered at different times.

3

Stateless and Stateful Widgets are represented differently in the Element tree. Learn how Keys affect this process.

4

Get a summary of the difference between the two widget types and explore some in-built widgets in Flutter and see how they qualify for their widget types and use this knowledge to know the type of widget to create.

5

Who is this for?

Flutter, Android and iOS developers who are getting into Flutter and want to understand the differences between Stateful and Stateless widgets and learn when’s best to use which one.

Covered concepts

  • Stateless Widget
  • Stateful Widget
  • The State Object
  • Widget LifeCycle
  • Working with Keys

Contributors

Comments