Everything in the flutter is a widget

What is this Widget🤦‍♀️🤦‍♀️

A widget might display Something, it might help define design, it might help with layout, it may handle user interaction, etc.

For example, Padding is a widget, Margin is a widget, Center is a widget, Layout rows and Columns are also widgets.

So you can consider that a widget is a blueprint.

Flutter uses these blueprints to create views.

Even your app itself is a widget.

Widgets are arranged into a tree of parent and child widget. Apart from design we can create our own widgets.

Any else on Widgets

Flutter divides widgets into two categories:

  1. Stateless Widgets
  2. Stateful Widgets
  1. Stateless Widgets:

Stateless widgets are “DATALESS” widgets. As they don’t store any real-time data. Ex: Icon, IconButton, and Text are an example of stateless widgets.

Platforms and Packages:

Design Packages in Flutter:

The Flutter SDK ships with two styled widget libraries (in addition to the basic widget library):

1.     Material widgets implements the Material design language for iOS, Android, web, and desktop.

 

2. Cupertino widgets implements the current iOS design language based on Apple’s Human Interface Guidelines]]

Material Design

An adaptable design system that helps teams build high-quality digital experiences.

Material Design (codenamed Quantum Paper) is a design language that Google 

announced on June 25, 2014, at the 2014 Google I/O conference.

Material Design is platform agnostic

i.e. It can be used on Android, iOS, and the Web.