Describe the bug
A clear and concise description of what the bug is.
UnityWidget in IndexedStack is reloaded all the time when the bottomNavigationBar switches.
To Reproduce
Steps to reproduce the behavior:
Build an app with bottomNavigationBar and IndexedStack, every time the bottomNavigationBar switches, the UnityWidget in IndexedStack would be reloaded. And the UnityId in _onPlatformViewCreated is increased.
Expected behavior
The state of the UnityWidget keeps.
Unity (please complete the following information):
OS: Windows 10
Version 2019.4.14f1
Flutter 1.22.1
Smartphone (please complete the following information):
Describe the bug A clear and concise description of what the bug is. UnityWidget in IndexedStack is reloaded all the time when the bottomNavigationBar switches.
To Reproduce Steps to reproduce the behavior: Build an app with bottomNavigationBar and IndexedStack, every time the bottomNavigationBar switches, the UnityWidget in IndexedStack would be reloaded. And the UnityId in _onPlatformViewCreated is increased.
Expected behavior The state of the UnityWidget keeps.
Unity (please complete the following information):
Smartphone (please complete the following information):