Рет қаралды 1,915
#flutter #stateless #stateful
In this video, I have dicussed about Flutter Stateless and Stateful widget. I have also used a simple example to demonstrate stateless and stateful widgets.
Anatomy and Directory Structure of a Flutter App: • Flutter Directory Stru...
Flutter Installation and setup : • Flutter Installation a...
Brief Summury
---
Stateless
Stateless widgets are the widgets that don’t change i.e. they are immutable. Its appearance and properties remain unchanged throughout the lifetime of the widget. In simple words, Stateless widgets cannot change their state during the runtime of the app, which means the widgets cannot be redrawn while the app is in action.
Stateful
Stateful Widgets are the ones that change its properties during run-time. They are dynamic i.e., they are mutable and can be drawn multiple times within its lifetime. It can change its appearance in response to events triggered by user interactions or when it receives data.