Flutter & Dart | 17 - Stateful Widget Explained Theoretically And Practically | Googles Framework

Опубликовано: 28 Сентябрь 2024
на канале: Tech Now Tv
337
10

What is State?
The state is information that can read simultaneously when the widget is built and might change during runtime, in short, we can say that State define the current property of Widget.

Classes that inherit Stateful Widget are immutable, But State is mutable.

Steps to implement Stateful Widget?
1. Create a class that extends ‘StatefulWidget’, that returns state in ‘createState()’
2. Create a ‘State’ class for widgets that may change their values during runtime.
3. Within the ‘State’ class, implement the ‘build()’ method.
4. Call ‘setState()’ function. ‘setState()’ function actually redraws widgets.

#fluttershy #flutterlashes #flutterby #fluttercord
#mobileapp #flutterapp #mobileappdevelopment #softwareengineer #webdeveloper #uidesign #css #mobiledevelopment #software #js #androidstudio #appdesign #googleflutter #developerlife #technology #webdevelopment #app #webdesign #flutterdevelopment #technowtv #androiddevelopment #programmers #development #reactjs #eyelashextensions #bukuflutter #ux #datamining #bukuit #order #mikrotik