incrediblezayed / file_saver

A simple flutter plugin for saving files in all platforms
https://pub.dev/packages/file_saver
BSD 3-Clause "New" or "Revised" License
75 stars 92 forks source link

Error: A value of type 'List<int>' can't be returned from an async function with return type 'Future<Uint8List>' #112

Open fischertayna opened 2 months ago

fischertayna commented 2 months ago

../../../../../../.pub-cache/hosted/pub.dev/file_saver-0.2.12/lib/src/utils/helpers.dart:59:21: Error: A value of type 'List' can't be returned from an async function with return type 'Future'.

tanthokg commented 2 months ago

I encountered the same problem, and upgrading the SDK to 3.19 solves the problem for me. My flutter doctor before I upgrade:

[√] Flutter (Channel stable, 3.13.9, on Microsoft Windows [Version 10.0.19045.4291], locale en-US) [√] Windows Version (Installed version of Windows is version 10 or higher) [√] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [√] Chrome - develop for the web [√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.8.3) [√] Android Studio (version 2023.3) [√] VS Code (version 1.89.0) [√] Connected device (4 available) [√] Network resources

incrediblezayed commented 1 month ago

This is wierd, drop your flutter doctor output, I'll try to reproduce @fischertayna

paraggupta9065 commented 1 month ago

i would like to work on this