You have probably already heard a lot about Stateful Widgets vs. Stateless Widgets.

Well, this video isn’t about defining them, but understanding WHEN you should use which.

If you watch this entire video, at the end, you will always know when to use a Stateful or a Stateless widget.

Very basically explained, Stateless Widgets use up less resources in your app, while Stateful Widgets will always consume more resources.

So, you should always use a Stateless Widget, except when you want your content to be dynamic. In that case, you should use a Stateful Widget. Now if you want it to be static, then you use a Stateless widget.

In the video I go more in depth on the explanation and I very lightly explain each of them. I also talk about State management (what it is and how it works), as well as how, once you become more advanced, you’ll be able to apply dynamic content to Stateless Widgets as well.

00:00 - Intro
00:21 - Stateless & Stateful Concepts
01:30 - Creating Incrementable Variables
02:10 - Applying The Variables
02:40 - Seeing If It Works (Stateless)
03:01 - Trying Again With Stateful
03:45 - Using The setState() Method
04:01 - Observing Dynamic Changes
04:14 - Further Explaining setState
04:30 - When To Use Stateful vs Stateless
05:00 - What Is State Management
05:30 - Talking About More Advanced State Uses
05:55 - The Consumer Widget Concept
06:20 - Advice For Beginners
06:45 - Like & Subscribe!
06:53 - Flutter Mentor Out

#flutter #stateful #stateless

Credits:

OUTRO SONG:
Mitsubachi by Smith The Mister https://smiththemister.bandcamp.com
Smith The Mister https://bit.ly/Smith-The-Mister-YT
Free Download / Stream: http://bit.ly/mitsubachi
Music promoted by Audio Library https://youtu.be/0IgndUb1YQI

Keywords:
Flutter, flutter tutorial, android studio, english, american accent, subtitles, closed captions, tutorial closed captions, flutter tutorial closed captions, flutter tutorial for beginners, flutter widgets, native english flutter tutorial,Dart tutorial,Dart language tutorial,Dart lang,Dart language,Dart, stateless widgets, stateful widgets, app resources, smooth stable apps, how to improve your apps performance

#flutter #stateful #stateless #beginners

When To Use A Stateless Or Stateful Widget (For Beginners) - Flutter
1.40 GEEK