juicycleff / flutter-unity-view-widget

Embeddable unity game engine view for Flutter. Advance demo here https://github.com/juicycleff/flutter-unity-arkit-demo
BSD 3-Clause "New" or "Revised" License
2.13k stars 518 forks source link

[iOS] A block main UI while using with speech_to_text library #858

Open dungbk1995 opened 1 year ago

dungbk1995 commented 1 year ago

Describe the bug There is a gap stop UI when starting listening (speech_to_text start listening/stopping). It seems like there is a block main thread here. SpeechToText

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Simple Unity Demo'
  2. Click on 'Audio button' on the textBox
  3. See that the CircularProgressIndicator is stop loading a little bit. Note: It doesn't happen at MenuList screen since, we don't use UnityWidget here.

Expected behavior The block UI will be no longer exist.

Screenshots https://github.com/juicycleff/flutter-unity-view-widget/assets/20292588/7d73ddae-8a07-4b19-bcf0-f1346ce19b56

Unity (please complete the following information):

Smartphone (please complete the following information):

Additional context Source code here: https://github.com/dungbk1995/flutter-unity-view-widget/tree/master/example

dungbk1995 commented 1 year ago

https://github.com/juicycleff/flutter-unity-view-widget/assets/20292588/076ef8a2-f163-4325-907a-c96909971cae