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
Releases
latest 28-
0.3.529 Oct 2025Release notes
Open source →- Fixes a bug where the bytes of an XFile, that is created using the
XFile.fromDataconstructor, are ignored on web. - Updates minimum supported SDK version to Flutter 3.29/Dart 3.7.
- Fixes a bug where the bytes of an XFile, that is created using the
-
0.3.5+118 Nov 2025Release notes
Open source →- Replaces README mentions of
dart:htmlwithpackage:web. - Updates minimum supported SDK version to Flutter 3.32/Dart 3.8.
- Replaces README mentions of
-
0.3.5+230 Jan 2026 -
0.3.5+330 Jun 2026Release notes
Open source →- Clarifies native XFile.mimeType documentation.
- Updates minimum supported SDK version to Flutter 3.38/Dart 3.10.
-
0.3.5+401 Jul 2026Release notes
Open source →- Adds a runnable
mainentry point and an additionalXFile.fromDatademonstration to the example.
- Adds a runnable
-
0.3.420 Feb 2024Release notes
Open source →- Updates to web code to package
web: ^0.5.0. - Updates SDK version to Dart
^3.3.0.
- Updates to web code to package
-
0.3.4+122 Feb 2024 -
0.3.4+201 Aug 2024 -
0.3.305 May 2022 -
0.3.3+124 May 2022 -
0.3.3+215 Sep 2022Release notes
Open source →- Fixes lint warnings in tests.
- Dartdoc correction for
readAsBytesandreadAsString.
-
0.3.3+331 Jan 2023 withdrawnRelease notes
Open source →- RETRACTED
- Updates code to fix strict-cast violations.
- Updates minimum SDK version to Flutter 3.0.
-
0.3.3+402 Feb 2023 -
0.3.3+529 Aug 2023Release notes
Open source →- Adds pub topics to package metadata.
- Updates minimum supported SDK version to Flutter 3.7/Dart 2.19.
-
0.3.3+612 Oct 2023 -
0.3.3+722 Nov 2023Release notes
Open source →- Updates README to improve example of instantiating an XFile.
- Updates minimum supported SDK version to Flutter 3.10/Dart 3.0.
-
0.3.3+801 Dec 2023Release notes
Open source →- Now supports
dart2wasmcompilation. - Updates minimum supported SDK version to Flutter 3.16/Dart 3.2.
- Now supports
-
0.3.227 Oct 2021 -
0.3.125 Feb 2021Release notes
Open source →- Fix nullability of
XFileBase'spathandnameto match the implementations to avoid potential analyzer issues.
- Fix nullability of
-
0.3.1+110 Mar 2021 -
0.3.1+308 Jul 2021 -
0.3.1+412 Jul 2021Release notes
Open source →- The
dart:ioimplementation ofsaveTonow does a file copy for path-basedXFileinstances, rather than reading the contents into memory.
- The
-
0.3.1+509 Sep 2021 -
0.3.022 Feb 2021Release notes
Open source →- 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:
lastModifiedreturns the epoch time as a default value, to maintain theFuture<DateTime>return type (and notnull)
- Web:
-
0.3.0-nullsafety29 Jan 2021 pre-releaseNothing published for this version
-
0.2.126 Jan 2021 -
0.2.005 Jan 2021Release notes
Open source →- breaking change Make sure the
saveTomethod returns aFutureso it can be awaited and users are sure the file has been written to disk.
- breaking change Make sure the
-
0.1.019 Nov 2020