September 2019
Beginner
512 pages
12h 52m
English
A typical UI will be composed of many widgets, and some of them will never change their properties after being instantiated. They do not have a state; that is, they do not change by themselves through some internal action or behavior. Instead, they are changed by external events on parent widgets in the widgets tree. So, it's safe to say that stateless widgets give control of how they are built to some parent widget in the tree. The following is a representation of a stateless widget:

So, the child widget will receive its description from the parent widget and will not change it by itself. In terms of code, this means that ...
Read now
Unlock full access