0 votes
in Flutter by
what are the different types of widgets available in Flutter?

1 Answer

0 votes
by

Two types of widgets present in the Flutter are stateless and stateful.

The stateless widgets don’t store any values which will change in the future. The stateless widgets don’t store any state. Icon, text widgets are some examples of stateless widgets.

The stateful widgets have a state object to keep track of all the changes and updates happening in the UI. These widgets are immutable but the state object is used to keep track of the changes. Checkbox and image are some of the examples of stateful widgets.

Related questions

0 votes
asked Aug 6, 2023 in Flutter by DavidAnderson
0 votes
asked Aug 8, 2023 in Flutter by DavidAnderson
...