chore: remove comment 2#
Some checks failed
versioning-and-changelog / versioning_and_changelog (pull_request) Failing after 18s
Some checks failed
versioning-and-changelog / versioning_and_changelog (pull_request) Failing after 18s
This commit is contained in:
parent
03e740532a
commit
b387b19b37
@ -39,15 +39,6 @@ class MyApp extends StatelessWidget {
|
||||
class MyHomePage extends StatefulWidget {
|
||||
const MyHomePage({super.key, required this.title});
|
||||
|
||||
// This widget is the home page of your application. It is stateful, meaning
|
||||
// that it has a State object (defined below) that contains fields that affect
|
||||
// how it looks.
|
||||
|
||||
// This class is the configuration for the state. It holds the values (in this
|
||||
// case the title) provided by the parent (in this case the App widget) and
|
||||
// used by the build method of the State. Fields in a Widget subclass are
|
||||
// always marked "final".
|
||||
|
||||
final String title;
|
||||
|
||||
@override
|
||||
@ -59,11 +50,6 @@ class _MyHomePageState extends State<MyHomePage> {
|
||||
|
||||
void _incrementCounter() {
|
||||
setState(() {
|
||||
// This call to setState tells the Flutter framework that something has
|
||||
// changed in this State, which causes it to rerun the build method below
|
||||
// so that the display can reflect the updated values. If we changed
|
||||
// _counter without calling setState(), then the build method would not be
|
||||
// called again, and so nothing would appear to happen.
|
||||
_counter = _counter + 4;
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user