This commit is contained in:
toly
2023-11-11 11:37:41 +08:00
parent 8fb4bf57d6
commit 5396712cf9
17 changed files with 368 additions and 101 deletions

View File

@@ -10,6 +10,18 @@ class CounterPage extends StatefulWidget {
class _CounterPageState extends State<CounterPage> {
int _counter = 0;
@override
void initState() {
print('======_CounterPageState#initState==============');
super.initState();
}
@override
void dispose() {
print('======_CounterPageState#dispose==============');
super.dispose();
}
void _incrementCounter() {
setState(() {
_counter++;