Main Topics-2 — What is Stateless Widget ?

Umut Ataş
2 min readJun 26, 2022

--

Hello everyone, I wanted our second topic to be English 🥳

In this article, we will examine the stateless widget structure. What is State What is Flutter Stateless Widget and what it matters ? I will try to answer the questions… Let’s start 😎

What is Satte ?

State represents the state in which the application is located. We can say that it is a snapshot of the screen. There are many widgets that affect the display of a screen, namely the state. Pictures, buttons, texts, icons are the simplest examples that come to mind. When the state changes, the image on the screen also changes. Therefore, it is important to choose the right state according to the widgets we use.

Stateless Widget ?

As you can see, a stateless widget actually means a widget without a state feature. For example, you typed the name of the application at the top of the screen. This text will not change in the future, which means that this text can be a stateless text widget. The only area of focus of a stateless widget is the information displayed and the user interface. A Stateless Widget does not tell the framework when to remove it or rebuild it, it gets a command from the framework itself. We use a stateless widget when we create an application that does not require redrawing a widget again and again.

Summary 🤔

It is useful to say that it is a very good build for structures with static designs. Especially when creating content such as notification information and guide information on some pages, the most ideal structures can be tried.

References

https://www.gokyuzuavcisi.com/stateless-widget-nedir-statefull-widget-nedir/

--

--

Umut Ataş
Umut Ataş

Written by Umut Ataş

FLUTTER AND ANDROID DEVELOPER

No responses yet