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. 😊
Chuka University
GDSC Lead
Devlab africa
intern
Data Science ,Machine Learning and Cloud Computing
Cloud Engineer
Data Science and Machine Learning
Chuka university
Graphic Design and Web3