Crash on Windows
Is there an existing issue for this?
- [x] I have searched the existing issues
Current Behavior
Crash occur when open webview wiht url. Everything is going on well when I develop with flutter development evironment. But when I build a package to run on the Windows without flutter development evironment, and open the webview with any url, the app crash immediately. After researching the reason, I found that the reason is lack of two newest version of "Microsoft Visual C++ 2015-2022 Redistributable (x64)" and "Microsoft Visual C++ 2015-2022 Redistributable (x6)". But most of Windows of users do not install the newest version of "Microsoft Visual C++ 2015-2022 Redistributable". How to resolve the problem?
Expected Behavior
Run normal when open webview wiht url.
Steps with code example to reproduce
InAppWebView( initialUrlRequest: URLRequest(url: WebUri("https://www.weibo.com")), )
Stacktrace/Logs
none!
Flutter version
v3.24.5
Operating System, Device-specific and/or Tool
Windows 10 / Windows 11
Plugin version
v0.2.3
Additional information
No response
Self grab
- [x] I'm ready to work on this issue!
You can add a Redistributable check when creating the installation package in Inno Setup
@fisherjoe Yes, this's a real problem, and i found a solution for it by bundling c++ x64 and x86 distributables within the flutter app for 64 and 32 machines, and install them on user machine if it's not already exist. check the full answer on Stackoverflow