Exercices


Questions:



  1. Stateless Widgets are ..... widgets while Stateful Widgets are ...... widgets.

  2. ......... can be updated during runtime based on user action or data change while .........do not depend on any data change or any behavior change.

  3. Stateful Widgets have an internal ...... and can re-render if the input data changes or if Widget’s ...... changes.

  4. 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.

  5. Name the Method :

  6. .......... : Draw the part of the user interface represented by the widget.

  7. .......... : Notifies the framework that the state of this object has changed to schedule calling the build for this State object.

  8. 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 .......... .

  9. The stateful widget also works similar to the stateless widget, but here when the framework calls the createElement method, a ........... is created.

  10. Name the Box Model parts :

  11. flutter box model exercice




Answers:


  1. static / dynamic

  2. Stateful Widgets / Stateless Widgets

  3. state / state

  4. state

  5. build()

  6. setState()

  7. stateless widget trees / element tree

  8. state object

  9. Height / Width / Padding / Border / Margin