Today we want to discuss Stateful and Stateless Widgets in a more deeper way. We will create here the first Stateful Widget and work with a Stateless Widget. We talk about the final keyword and also that a Stateless Widget is not able to change the properties inside.
On the other hand, we talk about the Stateful Widget and the setState method. Finally, we create a small button that changes the state of the widget and with that, we will see the results accordingly.
You can find the source code in the following repository:
https://github.com/md-weber/basic_wid...
If you search more information about Flutter check out https://flutter.dev.
⭐️⭐️ Timeline ⭐️⭐️
1:55 - Ternary Operator
3:40 - Stateful widget
4:30 - Changing the state
5:25 - Creating a button
7:10 - The setState Function
9:05 - Outro
⭐️⭐️ Follow me ⭐️⭐️
Twitter - / max_myracle
Github - https://github.com/md-weber
Hashnode / Blog - https://hashnode.com/@Myracle
⭐️⭐️ Support ⭐️⭐️
If you read this so far, thank you once more. If you like to support me, here are some links that could help me a lot.
Buy me a coffee - You are free to donate me a coffee so I can keep up my work.
https://www.buymeacoffee.com/sBGXj7Pl4
Amazon Affiliate Link - You buy for the same price and I get a small amount of it.
https://amzn.to/2NSs8op
On this page of the site you can watch the video online Stateless vs Stateful Widgets - Flutter Explained - Level: Beginner with a duration of hours minute second in good quality, which was uploaded by the user Flutter Explained 01 January 1970, share the link with friends and acquaintances, this video has already been watched 6,156 times on youtube and it was liked by 207 viewers. Enjoy your viewing!