What are Widgets in flutter ?

muchoki_ben
2 min readApr 17, 2021

what are widgets?

An application, or a component of an interface, that enables a user to perform a function or access a service.

Widgets are the elements on the screen of a flutter app .Widgets give an account on how the screen is going to be outlined. They are the building block of any flutter application since they describe the view of the app at different state widgets .

Widget come of two types;

  • stateless widgets — they are immutable widgets whose state cannot be altered once they are build.
  • Stateful widgets — they are mutable widgets whose state can be altered once they are build.

What a minute , what is state?

A state of a widget is the information that can be read synchronously when the widget is build and might change during the lifetime of widget.

There are various categories of widgets in flutter ;

  • Accessibility — widgets that make a flutter app more accessible.
  • Animation n Motion — widgets that add animation to other widgets.
  • Assets, Images and Icons — widgets that take charge of assets like display images and show icons.
  • Async — provide Async functions in the app.
  • Basic — widgets necessary for development of a flutter app.
  • Interaction models — widgets that manage routes and touch events.
  • Cupertino — iOS designed widgets.
  • Material — widgets that are designed by material design google .
  • Input — widgets that provide input functionality in an app.
  • layout — widget that aid in placing widgets on the screen .
  • Styling — widgets responsible in the responsiveness and sizing of the app .
  • Text — widget that displays a text
  • Scrolling — widgets that provides scrollability to other widgets
  • Painting and effect — widgets that apply visual changes to their child widgets .

Coming topic

  • MaterialApp
  • Scaffold

--

--

muchoki_ben

mobile &web developer | cyber security enthusiast | Tech blogger