|
@@ -64,7 +64,7 @@ class _MyHomePageState extends State<MyHomePage> {
|
|
|
// so that the display can reflect the updated values. If we changed
|
|
// so that the display can reflect the updated values. If we changed
|
|
|
// _counter without calling setState(), then the build method would not be
|
|
// _counter without calling setState(), then the build method would not be
|
|
|
// called again, and so nothing would appear to happen.
|
|
// called again, and so nothing would appear to happen.
|
|
|
- _counter += 2;
|
|
|
|
|
|
|
+ _counter++;
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
|