Exercices
Questions:
-
Stateless Widgets are ..... widgets while Stateful Widgets are ...... widgets.
-
......... can be updated during runtime based on user action or data change while .........do not depend on any data change or any behavior change.
-
Stateful Widgets have an internal ...... and can re-render if the input data changes or if Widget’s ...... changes.
-
Stateless Widgets do not have a ........., they will be rendered once and will not update themselves, but will only be updated when external data changes.
-
.......... : Draw the part of the user interface represented by the widget.
-
.......... : Notifies the framework that the state of this object has changed to schedule calling the build for this State object.
-
A stateless widget is formed by a combination of several small widgets. Each widget that is created here will have a corresponding stateless element. So several widgets combined under stateless widgets will be called .................... and the corresponding elements will make an .......... .
-
The stateful widget also works similar to the stateless widget, but here when the framework calls the createElement method, a ........... is created.
-
Name the Box Model parts :
Name the Method :
Answers:
-
static / dynamic
-
Stateful Widgets / Stateless Widgets
-
state / state
-
state
-
build()
-
setState()
-
stateless widget trees / element tree
-
state object
-
Height / Width / Padding / Border / Margin