Skip to content

Commit 92944c1

Browse files
authored
Moved calls to super.initState() to the top of overrides to conform with documented method contract (#326)
1 parent bdc426b commit 92944c1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,8 @@ class HomePage extends StatefulWidget {
193193
class _HomePageState extends State<HomePage> with WindowListener {
194194
@override
195195
void initState() {
196-
windowManager.addListener(this);
197196
super.initState();
197+
windowManager.addListener(this);
198198
}
199199
200200
@override
@@ -305,9 +305,9 @@ class HomePage extends StatefulWidget {
305305
class _HomePageState extends State<HomePage> with WindowListener {
306306
@override
307307
void initState() {
308+
super.initState();
308309
windowManager.addListener(this);
309310
_init();
310-
super.initState();
311311
}
312312
313313
@override
@@ -466,8 +466,8 @@ class HomePage extends StatefulWidget {
466466
class _HomePageState extends State<HomePage> with WindowListener {
467467
@override
468468
void initState() {
469-
windowManager.addListener(this);
470469
super.initState();
470+
windowManager.addListener(this);
471471
}
472472
473473
@override

0 commit comments

Comments
 (0)