搜索插件、代码仓与 APP 分类

插件详情v1.1.0

file_selector

使用原生文件选择 UI 打开和保存文件,或选择目录的 Flutter 插件。

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
101万
喜欢数
442
Pub 分数
160

安装插件

flutter pub add file_selector

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

file_selector 包提供了一个 Flutter 插件,使用户能够跨多个平台使用原生文件选择界面打开和保存文件或选择目录。它与 Android、iOS、Web、macOS、Windows 和 Linux 无缝集成,提供一致的行为,同时利用各平台特定的 UI 以实现最佳用户体验。该插件通过抽象平台差异来简化文件 I/O 操作,非常适合需要文件管理功能但又不想重复造轮子的应用程序。它支持文件选择和目录选择,设置简单。

适合场景

  • 从设备存储打开文件
  • 将文件保存到用户选择的位置
  • 选择用于数据导入/导出的目录
  • 在跨平台应用中集成原生文件对话框
  • 在生产力应用中启用文档管理

主要特点

  • 所有支持平台的原生文件选择器 UI
  • 支持文件打开和保存
  • 目录选择功能
  • 跨平台一致性
  • 所需配置最少

适合对象

  • 需要文件输入/输出的应用程序
  • 生产力和基于文档的应用程序
  • 跨平台文件管理工具
  • 寻求原生文件操作用户体验的开发者
  • 面向多个操作系统的项目

使用建议

  • Android 和 iOS 需要平台特定的权限
  • Web 支持取决于浏览器功能
  • 文件选择器 UI 的自定义功能有限
  • 可能需要额外处理文件类型过滤
  • 权限必须在移动平台上于运行时请求

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

Flutter Packages

Release Status Flutter CI Status

This repo is a companion repo to the main flutter repo. It contains the source code for Flutter's first-party packages (i.e., packages developed by the core Flutter team). Check the packages directory to see all packages.

These packages are also available on pub.

Issues

Please file any issues, bugs, or feature requests in the main flutter repo. Issues pertaining to this repository are labeled "package".

Contributing

If you wish to contribute a new package to the Flutter ecosystem, please see the documentation for developing packages. You can store your package source code in any GitHub repository (the present repo is only intended for packages developed by the core Flutter team). Once your package is ready you can publish to the pub repository.

If you wish to contribute a change to any of the existing packages in this repo, please review our contribution guide, and send a pull request.

Packages

These are the packages hosted in this repository:

Package Pub Points Usage Issues Pull requests
animations pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
camera pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
cross_file pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
cupertino_icons pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
cupertino_ui pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
espresso pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
extension_google_sign_in_as_googleapis_auth pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
file_selector pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
flutter_lints pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
flutter_plugin_android_lifecycle pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
flutter_svg pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
flutter_svg_test pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
go_router pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
go_router_builder pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
google_adsense pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
google_fonts pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
google_maps_flutter pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
google_sign_in pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
image_picker pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
interactive_media_ads pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
in_app_purchase pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
local_auth pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
material_ui pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
metrics_center pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
path_parsing pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
path_provider pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
pigeon pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
pointer_interceptor pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
plugin_platform_interface pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
quick_actions pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
google_identity_services_web pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
rfw pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
shared_preferences pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
two_dimensional_scrollables pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
url_launcher pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
vector_graphics pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
vector_graphics_codec pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
vector_graphics_compiler pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
video_player pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
web_benchmarks pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
webview_flutter pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
xdg_directories pub package pub points downloads GitHub issues by-label GitHub pull requests by-label

所属分类

依赖

依赖清单 7 项

  • file_selector_android^0.5.0
  • file_selector_ios^0.5.0
  • file_selector_linux^0.9.4
  • file_selector_macos^0.9.5
  • file_selector_platform_interface^2.7.0
  • file_selector_web^0.9.1
  • file_selector_windows^0.9.3

源码仓库

使用此插件的项目