Closed evan8133 closed 1 year ago
I have the same issue but I'm not using flutter_downloader
@evan8133 do you use initialize if it's a mobile device only or do you run initialize regardless of device type in the main function?
I have solved the issue by only initializing if its web:
if (!kIsWeb) {
await FlutterDownloader.initialize();
}
Description:
My Flutter application is designed to seamlessly function across both mobile and web platforms. While I have successfully integrated the Flutter Downloader package, I have encountered a challenge. Although the mobile version operates flawlessly, I am currently facing an obstacle with the web version, as it refuses to run. Your assistance in resolving this web-specific issue would be greatly appreciated.
Expected Behavior
The intended functionality for my application involves enabling a download feature exclusively for the mobile platform, while excluding this feature for the web platform. I had assumed that by utilizing a package intended solely for mobile use, I could easily hide the download button when the application runs on the web.
This is my error log
This is my version:
pubspec.yaml: