add delay to setRendering when coming back from inactive

This commit is contained in:
Nick Fisher
2023-11-02 22:05:57 +08:00
parent a366867d91
commit 6671ced45d

View File

@@ -246,6 +246,7 @@ class _SizedFilamentWidgetState extends State<_SizedFilamentWidget> {
break;
case AppLifecycleState.resumed:
print("Resumed");
await Future.delayed(const Duration(milliseconds: 500));
await widget.controller.setRendering(_wasRenderingOnInactive);
break;
}