Component - setState for local state
This Flutter widget shows how to use setState to update local state inside a StatefulWidget. When the button is pressed, the number on screen increases by one.
This Flutter widget shows how to use setState to update local state inside a StatefulWidget. When the button is pressed, the number on screen increases by one.
Scaffold
├─ AppBar
│ └─ Text
└─ Center
└─ Column
├─ Text
└─ ElevatedButton
└─ Text