Set State Method in Flutter - State Management Basics

preview_player
Показать описание
This is the second video of the state management series, today we will focus on #setState and how we "Lift the State up". Additionally, we try to bring some light on why we think about different packages.

00:00 - Introduction
00:25 - Explanation of the Boilerplate
01:10 - Checkbox Selection state
04:00 - Usage of setState
04:40 - Deep Dive into the setState Function
05:20 - Creating of DrinkWidget
05:56 - Drink Class and List of Drinks
07:05 - Spread a list of widgets
07:30 - Update ListView to work with drinks
08:40 - Lift the state up
11:00 - Problem with setState
12:00 - Summary of the advantages and disadvantages
13:00 - Outro

⭐️⭐️Helpful Ressources ⭐️⭐️

Tools we use to grow our YouTube channel
TubeBuddy Review - Manage Your YouTube Channel Easily

Our current YouTube gear

⭐️⭐️Follow us ⭐️⭐️

⭐️⭐️ Support ⭐️⭐️
If you read this so far, thank you once more. If you like to support us, here are some links that could help me a lot.

Donation via Streamlabs - You are free to donate us a small amount, so we can keep up our work.

Рекомендации по теме
Комментарии
Автор

Dude, it's the first video I see that really explains state in a simple and clear way, thanks!!!

xavicolomes
Автор

Thank you for this useful videos. i enjoyed

manojpalitech
Автор

This channel deserves more subs. Can't wait for video about 'key' and usege.

adamcierniak
Автор

i studied most important things. thanks buddy

Hidden_traveler
Автор

The exact video what I was looking for, thanks

almamun
Автор

hello, thank you very much for the video! it is what i needed!

just a question, how to you capture the selected list into a string variable?

AndyBandi
Автор

Thank you very much for this excellent video, I think, it's very good for beginners, which I am. Now, I have a question. Flutter offers the setState as a way to refresh the UI showing the new state of the Widget, and developers need to use a solution to make the App uses less resources like Redux, Provider, GetX, BLoC, etc.. Which state management solution do you recommend?

abasilis
Автор

ay man, how can i get the selected values if i want to use them later in the app?

somdey
Автор

Hello, I’m a student and still new to flutter how can I do what you teach using filter chips and insert them into a Messages in an e-mail to send to an email address using mailer package when user press my mail button. I already have the mailer code working just need to know how to include the values/message of the chips into the email message.

Sarah-bbso
Автор

how can we store selected items in database table??

fathimashafana
Автор

My List<Widget> is not updating or what must be done inside the setState method to show the updated values on the ui for a particular List item?Currently it displays a message without updating the screen if (isSuccess) {
setState(() {
custodialupdateStatusMessage =
'Saved successfully';
});
} else {
setState(() {
custodialupdateStatusMessage =
'Save failed';
});

kminunov
Автор

Wow what's the name o the plugin you have that shows you those line branches between nodes?? I need that! Amazing video also

lear
Автор

How do we set out each of the examples in A.Studio? Do we set up ourGit hub and save each example there? Also, where is your code for this?

fredericklane
Автор

if i change it to a Stateless widget it doesnt get splitted.

theghost
Автор

Hi Max, how do you het this Nice tree lines?

stefaandeconinck
Автор

hi Im getting error in setState please help

anixsamsaji
Автор

Thank you Sir, I'm developing an app using flutter since, I have no guide to help proceeding that it would be great that if you considering regarding that. And i would be extremely happy i have contact with you through telegram or discord.(FYI i have commented same message through different mail the comment haven't posted this is another one).

alpachino