Introduction to widgets - Flutter | "everything in the flutter is a widget"

Chuka University
Fri, Apr 30, 2021, 6:00 PM (EAT)

everything in the flutter is a widget Flutter provides a number of widgets that help you build apps that follow Material Design. A Material app starts with the MaterialApp widget, which builds a number of useful widgets at the root of your app, including a Navigator , which manages a stack of widgets identified by strings, also known as “routes”.

Check out what happened

About this event

Flutter is an open-source UI software development kit created by Google. It is used to develop applications for Android, iOS, Linux, Mac, Windows, Google Fuchsia, and the web from a single codebase. The first version of Flutter was known as the codename "Sky" and ran on the Android operating system.

In flutter, Widget is a way to declare and construct UI.

If you are familiar with the Android or iOS development then you might make the immediate connection with the views (on Android) or UIViews (on iOS).

But dear just like view, Widget is not just a piece of UI. Widget is a lot more than just structural elements like buttons, text, image, list or slider. 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.

Here also remember that in flutter everything is a widget. Even your app itself is a widget. 😊