Search⌘ K
AI Features

Types of Widgets in Flutter

Explore the different types of widgets in Flutter, including visible and invisible, stateful and stateless. Understand how widgets control app appearance and interact with state management. Learn to create custom widgets and use key Flutter components like Center, Text, and Scaffold to build efficient user interfaces.

Types of widgets

There are two types of widgets in Flutter, stateful and stateless. However, we can broadly categorize them into two more types – visible and invisible.

Before we discuss inherited widgets, let us briefly look at the inside world of widgets.

What are visible widgets?

Visible widgets are ones that we can see, the widgets that take inputs and give outputs.

ElevatedButton() and Text(), etc…

However, invisible widgets also play crucial roles because they control the look and structure of the Flutter app.

Row(), Column(), ListView(), etc…

The ...