31.30 Flutter Class Widget

20230910

Almost everything in Flutter is a Widget. Visible widgets are the presentation elements we see in the app and include Icon, Image, Text. Non-visible layout widgets arrange, constrain, and align the visible widgets, and include Center, Column, Grid, Row.

Widgets are immutable in that they don’t change but instead they get replaced or rebuilt when something in the state changes. They are rebuilt based on the updated context.

Flutter widgets can provide data and services to their descendants through special kinds of widgets called InheritedWidget, InheritedNotifier, InheritedModel. They are low level widgets which are used by the provider package. See Section 31.48. for details.



Your donation will support ongoing availability and give you access to the PDF version of this book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984. Copyright © 1995-2022 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0