Flutter widget
There are two types of widget
- Single child widget - can hold only one child widget
- multi-child widget - can hold multiple child widgets
STATELESS widget is used for displaying STATIC Content or design once Data/UI is rendered, we cannot modify Data.
STATEFUL widget is used for displaying DYNAMIC content or Design
The stateful widget will re-render UI based on an event(Variable update, values changed , network request)
Example for Flutter widget
- Text() - used for displaying text
- Image.network() - used for displaying image
- Drawer() - used for displaying side menu
- Button -
TextButton()
EvevetedButton()
FloatingButton()
OutlineButton()
Comments
Post a Comment