Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
fischertayna opened this issue Apr 22, 2024 · 3 comments

Comments

@fischertayna
Copy link

../../../../../../.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'.

  • 'List' is from 'dart:core'.
  • 'Future' is from 'dart:async'.
  • 'Uint8List' is from 'dart:typed_data'.
    return utf8.encode(response.data);
@tanthokg
Copy link

tanthokg commented May 6, 2024

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
Copy link
Owner

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

@paraggupta9065
Copy link

i would like to work on this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants