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.09k stars 505 forks source link

[Android] Flutter 3.16 & 3.19 make the widget invisible on Android < 10. #912

Open timbotimbo opened 6 months ago

timbotimbo commented 6 months ago

Describe the bug When using this widget with the default settings on Flutter 3.16, the widget is invisible on Android < 10. I recommend not going past Flutter 3.13.9 for now.

See this issue in the Flutter repo for more details. Looks like it is a Flutter bug.

To Reproduce Steps to reproduce the behavior:

  1. Use Flutter 3.16.5
  2. Run any project with flutter_unity_widget
  3. On Android >= 10 everything is normal, on Android <10 the widget is invisible.

Screenshots

3.13.9 Visible 3.16.5 Invisible
https://github.com/flutter/flutter/assets/11444698/e5e41192-7da7-4e04-9715-52804883ca33 https://github.com/flutter/flutter/assets/11444698/c68547ac-217b-4381-b0ba-bcf7c8b19b9c

Unity:

Smartphone Devices affected during my tests:

timbotimbo commented 5 months ago

The fix might make it into the next Flutter release, so it is best to completely skip 3.16.

It seems to be fixed as of tag 3.20.0-0.0.pre in the flutter repo.

timbotimbo commented 4 months ago

Not fixed on the new 3.19 stable. it is fixed on public beta 3.20.0-1.1.pre

Zhang-Zhi-Jie commented 2 months ago

the same question

timbotimbo commented 1 month ago

Fixed in Flutter 3.22.0 stable