Skip to content

Upgrading path_provider 1 to 2

Breaking1.6.28 → 2.1.6Platform10New1Changed5Other4

Fetching 25 releases from GitHub…7 / 25
BreakingUpgrade verdict

10 platform requirement changes.

  • The package now requires a newer Flutter and Dart version to use.
  • The package now requires a newer Flutter and Dart version to work.
  • On Android, the package now needs a newer version of its Android helper package because the old Android embedding is gone.
  • On Android, downloading directory support now requires a newer version of the Android-specific part of this package.
Top 3 of 10 that need code or config changes

Dart SDK requirement changed in 2.1.6: >=2.1.0 <3.0.0 → ^3.10.0.

Flutter requirement changed in 2.1.6: >=1.12.13+hotfix.5 → >=3.38.0.

Platform10
Updates minimum supported SDK version to Flutter 3.38/Dart 3.10.
Updates minimum supported SDK version to Flutter 3.19/Dart 3.3.
Updates minimum required path_provider_android to 2.2.5 as the v1 Android embedder is no longer available.
path_provider_android
Updates minimum required path_provider_android to 2.2.0 to ensure support for getDownloadsDirectory() on Android.
path_provider_androidgetDownloadsDirectory()
Updates minimum supported SDK version to Flutter 3.16/Dart 3.2.
Updates minimum supported SDK version to Flutter 3.13/Dart 3.1.
Updates support matrix in README to indicate that iOS 11 is no longer supported.
Updates minimum supported SDK version to Flutter 3.10/Dart 3.0.
Updates minimum supported SDK version to Flutter 3.7/Dart 2.19.
Updates minimum supported SDK version to Flutter 3.3/Dart 2.18.