flutter_native_view
flutter_native_view copied to clipboard
App crashing when calling ensureInitialized
As by the docs I have added the requested lines on my main.cpp
for the windows folder, until here if I run the app there's no problem. But when I call FlutterNativeView.ensureInitialized();
on my main
method the app just crashes, I've tried placing it inside a try/catch
but nothing happens and no detailed error is thrown.
Here's the output of my flutter doctor
command
$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[β] Flutter (Channel stable, 3.0.0, on Microsoft Windows [versΓo 10.0.19043.1645], locale pt-BR)
[β] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[β] Chrome - develop for the web
[β] Visual Studio - develop for Windows (Visual Studio Community 2022 17.0.4)
[β] Android Studio (version 2021.1)
[β] VS Code (version 1.67.0)
[β] Connected device (3 available)
[β] HTTP Host Availability
β’ No issues found!
Using:
flutter_native_view: ^0.0.1+1
are you using window_manager?
I had the same problem when I used the settings
window_class, title.c_str(), WS_OVERLAPPEDWINDOW,
window_manager
Yes, I'm using window_manager, did you manage to solve this problem?
Hey there guys, currently this project is a research & I can't provide any deadlines. Even the features currently added need improvements & changes can be made to nearly anything at current moment. Thanks.
BTW, I had successfully used the plugin along bitsdojo_window, but it's not something I can confirm after recent commits in the repository. With that being said, I don't recommend any of bitsdojo_window or window_manager personally.