Check Mobile App
Read now
Start a Project

What are Widgets in Flutter?

Save

Widgets are simple UI building blocks in Flutter. The views in flutter are totally based on Widgets. They describe how the view should look and function according to there states. As the state of the widget changes, it rebuilds the whole render tree again.

Types of Widgets

So, while working on your view, You create mainly two types of layouts. One which stays the same and does not change and the other one which can be changed according to user interactions. Flutter provides two types of widgets for these two types of views.

  1. StatelessWidgets
  2. StatefullWidgets

StatelessWidgets

There are some views in your application that does not change just like a title bar, you don’t want anyone to change it. These type of static views are build using StatelessWidgets in Flutter. As they do not change after the create there are no states in these widgets.

StatefullWidgets

On the other hand, there are views that change according to user interaction just like Checkbox or a RadioButton. These are used to create dynamic views. They can be changed even after the create so they have states in them.

 

. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

css.php

When I think in getting solutions for my Ecommerce Platform, I think of Webkul. They have been such a blessing in our business. We have spent thousands of dollars in support and modules from them. We love their support team. They work very closely with us, and they always go the extra mile when we need help.

Michael Urresta

Michael Urresta

Talk to Sales

Global

Live Chat
Start a Project

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home