DEV Community

Cover image for Top 11 Flutter Widgets To Know In 2021
Solace Infotech Pvt. Ltd.
Solace Infotech Pvt. Ltd.

Posted on

Top 11 Flutter Widgets To Know In 2021

These days, flutter is one of the most popular framework for developing mobile, web and desktop applications. It is full of widgets and it makes it more sustainable. Flutter widgets are used for developing high-quality cross platform applications because they are customizable and offer extensive flexibility & fluidity that can be the best fit for any mobile app type. Widget elements are organized in the form of a widget tree. The manner in which the widgets are placed defines the operation of the front-end of the native applications screen. The two primary things of Flutter widgets are the configuration and the widget state. There are lots of Flutter widgets available and here we’ll discuss the top 11 widgets for developing flutter apps. Before digging into the flutter widget list, let us see the types of flutter widgets.

You can also know- Amazing New Features Of Flutter 2.0

Types Of Flutter Widgets-

There are two types of Widgets in Flutter- Stateless widget and Stateful widget. Based on the two types, these widgets are further categorized into 14 different categories as- Async, Accessibility, Assets, Images and Icons, Layout, Interaction Models, Material components, Animation and motion, Painting and effects, styling, text.

Top 11 Flutter Widgets-

1. SafeArea-
This widget is best to use for developing dynamic and adaptive UI. It helps to adjust the screen with various devices of different width and height. Also, it helps in overcoming the area constraints induced by status bar, notches, navigation bar etc. It’s implementation doesn’t allow the design to overlay any of the areas where there is frontend UI visibility constraint and so makes it error-free. Hence SafeArea widget is also known as padding widget that adds padding to android or iOS apps wherever there is a constraint. SafeArea widget will also indent the child with the necessary padding necessity, particularly for the devices with the Notch like iPhone X.

2. ConstrainedBox-
It is a built-in widget available in Flutter SDK. Generally it is used to add size limitations to the child widgets. It allows developers to add flexibility with respect to height and width in a child widget. But the widget has limitation when the child is bigger in size than the container. It cuts the child’s view, making the front end look somewhat out of the line. This issue can be tackled by not defining the maxHeight property and adjusting it to by default value of double.infinity. Example of this widget is-

if you wanted child to have a minimum height of 50.0 logical pixels, you could use const BoxConstraints(minHeight: 50.0) as the constraints.

3. Align Widget-
You should organize components inside the UI. Flutter can compose these widgets together. But how do we position a child under a parent widget? We can use the Align widget. For instance, how we choose the position of the text inside a container. Following code shows you the result.

Know more at- [https://solaceinfotech.com/blog/top-11-flutter-widgets-to-know-in-2021/]

Top comments (2)

Collapse
 
techguy profile image
Arun

Syncfusion Flutter widgets to create high-quality apps for mobile, web and desktop

Collapse
 
pablonax profile image
Pablo Discobar

hey, cool job! if you are interested in this topic, then check this article - dev.to/pablonax/free-flutter-templ...
I'm sure you'll like it, dude!