1.

What are the types of widgets present in flutter?

Answer»

In flutter, widgets can be divided into two categories: 

  • Stateless Widget: A widget that does nothing is a Stateless Widget. In essence, they are STATIC and don’t store any state.   THUS, they don't save values that may change.
  • Stateful Widget: A widget that does ANYTHING is a Stateful Widget. Stateful widgets are dynamic by nature, which means they can MONITOR changes and update the UI accordingly.


Discussion

No Comment Found