Skip to content

Commit c965662

Browse files
authored
Merge pull request #41 from fluttercommunity/bug/unexpected_inactive_layer_toggle
Fixed toggle from front layer bug occurring in flutter beta
2 parents 043f6e0 + b058929 commit c965662

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lib/scaffold.dart

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,16 @@ class BackdropScaffoldState extends State<BackdropScaffold>
261261
_headerHeight = _getHeaderHeight();
262262
});
263263
});
264+
265+
_controller.addStatusListener((status) {
266+
setState(() {
267+
// This is intentionally left empty. The state change itself takes
268+
// place inside the AnimationController, so there's nothing to update.
269+
// All we want is for the widget to rebuild and read the new animation
270+
// state from the AnimationController.
271+
// see https://github.com/flutter/flutter/pull/55414/commits/72d7d365be6639271a5e88ee3043b92833facb79
272+
});
273+
});
264274
}
265275

266276
@override

0 commit comments

Comments
 (0)