[path_provider] Completely rethink the path_provider API #118712
Labels
c: new feature
Nothing broken; request for a new capability
p: path_provider
Plugin that provides resolved paths to some platform directories
P2
Important issues not at the top of the work list
package
flutter/packages repository. See also p: labels.
team-ecosystem
Owned by Ecosystem team
triaged-ecosystem
Triaged by Ecosystem team
The API for
path_provider
has a number of significant issues:getExternalCacheDirectories
, which is highly Android-specific in practice) are mixed in with abstractions in the app-facing API.The package's API would benefit from being redesigned from scratch. We should:
path_provider
and platform-specific things inpath_provider_*
, with clear docs in the app-facing package about the existence of the latter, with links to implementation package readmes as examples.Removing APIs from path_provider would be extremely disruptive as it's such a foundational plugin in the package ecosystem, but we can deprecate the old APIs and create a clean set of new APIs, like we did with
url_launcher
. That way we don't have to do it as a breaking change, so everyone in the ecosystem can switch to the new APIs gradually, without creating a lot of transitive version conflict problems.The text was updated successfully, but these errors were encountered: