overlay: fixed padding after toggling it off, then on and changing orientation

This commit is contained in:
Thibault Deckers 2020-04-03 09:05:32 +09:00
parent adfc93a59c
commit c4c95280ef

View file

@ -273,8 +273,10 @@ class FullscreenBodyState extends State<FullscreenBody> with SingleTickerProvide
});
_hideSystemUI();
await _overlayAnimationController.reverse();
_frozenViewInsets = null;
_frozenViewPadding = null;
setState(() {
_frozenViewInsets = null;
_frozenViewPadding = null;
});
}
}