Stateless vs Stateful Widgets - Flutter Explained - Level: Beginner
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_widget_tutorial/tree/stateless_vs_stateful 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 - https://twitter.com/max_myracle Github - https://github.com/md-weber Hashnode / Blog - https://hashnode.com/@Myracle βοΈβ
βhttps://tube.tchncs.de/w/qNvamJsoTGzoQJhsk7fTac