Stateful Widget :- When user interacts with an App and the widget change then it is called Stateful Widget. A Stateful widget is Dynamic.
For Example :- When user click on a button on App and text changes then it is called Stateful Widget.
When the widget’s state changes, the state objects calls setState(), telling the framework to redraw the widget.
Write down the below code in main.dart file in your project.
Latest posts by Sushant Kumar (see all)
- What is On-Page Optimization and Off-page Optimization - March 14, 2024
- [SOLVED] Flutter : PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 10: , null, null) - December 7, 2021
- [Solved] Flutter : Error: The getter ‘subhead’ isn’t defined for the class ‘TextTheme’ from package:flutter/src/material/text_theme.dart’ – searchable_dropdown - December 6, 2021