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:
parent
60de657a96
commit
4e102c7e69
1 changed files with 7 additions and 4 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue