Temp fix for navigation pop causing freeze (#78)

Caused by having a visbile webview while using Hybrid Composition.
Temporary workaround is to add a slight delay.
This commit is contained in:
tommyxchow 2022-02-01 14:26:07 -05:00
parent 60de657a96
commit 4e102c7e69

View file

@ -199,7 +199,7 @@ class _VideoChatState extends State<VideoChat> {
SystemChrome.setEnabledSystemUIMode(
SystemUiMode.manual,
overlays: [SystemUiOverlay.bottom, SystemUiOverlay.top],
overlays: SystemUiOverlay.values,
);
return SafeArea(
child: Column(
@ -228,9 +228,12 @@ class _VideoChatState extends State<VideoChat> {
void dispose() {
_chatStore.dispose();
SystemChrome.setEnabledSystemUIMode(
SystemUiMode.manual,
overlays: [SystemUiOverlay.bottom, SystemUiOverlay.top],
Future.delayed(
const Duration(milliseconds: 500),
() => SystemChrome.setEnabledSystemUIMode(
SystemUiMode.manual,
overlays: SystemUiOverlay.values,
),
);
super.dispose();