Conversation
|
According to current winit's event handling implementation details there is no way directly hook Android's pause/resume events which can be used to create/destroy surface. |
|
To get it work we need solve at least two issues.
For now I see the next possible solutions:
|
|
Here we go, some running example based on your changes: |
Those were removed because @goddessfreya and me came to the conclusion that glutin didn't need to know about those after the improvements to glutin 0.23. I'd still like to see those happen as it makes integrating with for example Also I don't have the time to work on this stuff at the moment, as due to instability of flutter-rs/winit on desktop platforms and lack of support for mobile platforms we decided to go with "regular" flutter and are using ffi to integrate our rust code into the ui. |
This is temporary solution as starting point
181f651 to
e12092f
Compare
Currently this fails because of an Android incompatibility in glutin: rust-windowing/glutin#1307 rust-windowing/glutin#1313
Currently this fails because of an Android incompatibility in glutin: rust-windowing/glutin#1307 rust-windowing/glutin#1313
Currently this fails because of an Android incompatibility in glutin: rust-windowing/glutin#1307 rust-windowing/glutin#1313
cargo fmthas been run on this branchcargo docbuilds successfullyCHANGELOG.mdif knowledge of this change could be valuable to usersLinked issues: #1307