From b0589291bc1bcda3441e029a4d65440cfe25a649 Mon Sep 17 00:00:00 2001 From: Felix Wielander Date: Mon, 6 Jul 2020 20:45:02 +0200 Subject: [PATCH] Fixed toggle from front layer bug occurring in flutter beta --- lib/scaffold.dart | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/scaffold.dart b/lib/scaffold.dart index 42d38d5..8927eea 100644 --- a/lib/scaffold.dart +++ b/lib/scaffold.dart @@ -261,6 +261,16 @@ class BackdropScaffoldState extends State _headerHeight = _getHeaderHeight(); }); }); + + _controller.addStatusListener((status) { + setState(() { + // This is intentionally left empty. The state change itself takes + // place inside the AnimationController, so there's nothing to update. + // All we want is for the widget to rebuild and read the new animation + // state from the AnimationController. + // see https://github.com/flutter/flutter/pull/55414/commits/72d7d365be6639271a5e88ee3043b92833facb79 + }); + }); } @override