PackageTrack
Sign in Get early access

cross_file

An abstraction to allow working with files across multiple platforms.

0.3.5 184K downloads/mo #882 most downloaded on pub.dev flutter/packages

What this package is like to depend on

Last release 1 months ago

01 Jul 2026

Release timing varies

gaps range from 8 days to 1.2 years

Nearly every release is documented

notes for 26 of 26 stable releases

1 version withdrawn

withdrawn after publishing

6 years old

28 releases · first in 2020

5 releases in the last 12 months

see the full history below

Release timeline

28 releases · Nov 2020 to Jul 2026
2021 2022 2023 2024 2025 2026
Release Pre-release Withdrawn

Releases

latest 28
  1. 0.3.5 29 Oct 2025
    Release notes
    • Fixes a bug where the bytes of an XFile, that is created using the XFile.fromData constructor, are ignored on web.
    • Updates minimum supported SDK version to Flutter 3.29/Dart 3.7.
    Open source →
  2. 0.3.5+1 18 Nov 2025
    Release notes
    • Replaces README mentions of dart:html with package:web.
    • Updates minimum supported SDK version to Flutter 3.32/Dart 3.8.
    Open source →
  3. 0.3.5+2 30 Jan 2026
    Release notes
    • Separates "Save As" implementation details from XFile web class.
    Open source →
  4. 0.3.5+3 30 Jun 2026
    Release notes
    • Clarifies native XFile.mimeType documentation.
    • Updates minimum supported SDK version to Flutter 3.38/Dart 3.10.
    Open source →
  5. 0.3.5+4 01 Jul 2026
    Release notes
    • Adds a runnable main entry point and an additional XFile.fromData demonstration to the example.
    Open source →
  6. 0.3.4 20 Feb 2024
    Release notes
    • Updates to web code to package web: ^0.5.0.
    • Updates SDK version to Dart ^3.3.0.
    Open source →
  7. 0.3.4+1 22 Feb 2024
    Release notes
    • Removes a few deprecated API usages.
    Open source →
  8. 0.3.4+2 01 Aug 2024
    Release notes
    • Adds support for web: ^1.0.0.
    Open source →
  9. 0.3.3 05 May 2022
    Release notes
    • Removes unused Flutter dependencies.
    Open source →
  10. 0.3.3+1 24 May 2022
    Release notes
    • Fixes lastModified unimplemented error description.
    Open source →
  11. 0.3.3+2 15 Sep 2022
    Release notes
    • Fixes lint warnings in tests.
    • Dartdoc correction for readAsBytes and readAsString.
    Open source →
  12. 0.3.3+3 31 Jan 2023 withdrawn
    Release notes
    • RETRACTED
    • Updates code to fix strict-cast violations.
    • Updates minimum SDK version to Flutter 3.0.
    Open source →
  13. 0.3.3+4 02 Feb 2023
    Release notes
    • Reverts an accidental change in a constructor argument's nullability.
    Open source →
  14. 0.3.3+5 29 Aug 2023
    Release notes
    • Adds pub topics to package metadata.
    • Updates minimum supported SDK version to Flutter 3.7/Dart 2.19.
    Open source →
  15. 0.3.3+6 12 Oct 2023
    Release notes
    • Improves documentation about ignored parameters in IO implementation.
    Open source →
  16. 0.3.3+7 22 Nov 2023
    Release notes
    • Updates README to improve example of instantiating an XFile.
    • Updates minimum supported SDK version to Flutter 3.10/Dart 3.0.
    Open source →
  17. 0.3.3+8 01 Dec 2023
    Release notes
    • Now supports dart2wasm compilation.
    • Updates minimum supported SDK version to Flutter 3.16/Dart 3.2.
    Open source →
  18. 0.3.2 27 Oct 2021
    Release notes
    • Improve web implementation so it can stream larger files.
    Open source →
  19. 0.3.1 25 Feb 2021
    Release notes
    • Fix nullability of XFileBase's path and name to match the implementations to avoid potential analyzer issues.
    Open source →
  20. 0.3.1+1 10 Mar 2021
    Release notes
    • Rehomed to flutter/packages repository.
    Open source →
  21. 0.3.1+3 08 Jul 2021
    Release notes
    • Fix example in README
    Open source →
  22. 0.3.1+4 12 Jul 2021
    Release notes
    • The dart:io implementation of saveTo now does a file copy for path-based XFile instances, rather than reading the contents into memory.
    Open source →
  23. 0.3.1+5 09 Sep 2021
    Release notes
    • Unify XFile interface for web and mobile platforms
    Open source →
  24. 0.3.0 22 Feb 2021
    Release notes
    • Migrated package to null-safety.
    • breaking change According to our unit tests, the API should be backwards-compatible. Some relevant changes were made, however:
      • Web: lastModified returns the epoch time as a default value, to maintain the Future<DateTime> return type (and not null)
    Open source →
  25. 0.3.0-nullsafety 29 Jan 2021 pre-release

    Nothing published for this version

  26. 0.2.1 26 Jan 2021
    Release notes
    • Prepare for breaking package:http change.
    Open source →
  27. 0.2.0 05 Jan 2021
    Release notes
    • breaking change Make sure the saveTo method returns a Future so it can be awaited and users are sure the file has been written to disk.
    Open source →
  28. 0.1.0 19 Nov 2020
    Release notes
    • Initial open-source release.
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive