Search packages, repositories and app categories

Package detailsv2.1.0

open_file_manager

A flutter plugin to open default file manager app. on an Android, it opens Download/Recent folder on file manager app. on iOS, it opens app's document folder in Files app.

AndroidiOS
30-day downloads
14.6K
Likes
39
Pub points
160

Install package

flutter pub add open_file_manager

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A Flutter plugin that opens the device's default file manager app. On Android, it navigates to the Downloads or Recent folders; on iOS, it opens the app’s document directory within the Files app. This enables users to easily access and manage files from within their app context without requiring custom file browsing interfaces. The plugin simplifies file navigation by leveraging native system behaviors, ensuring a consistent user experience across platforms.

Use cases

  • Opening app-specific documents in the Files app
  • Navigating to recent or downloaded files
  • Enabling user file management from within an app
  • Integrating with file-saving workflows
  • Providing quick access to app storage directories

Key features

  • Cross-platform compatibility (Android & iOS)
  • Opens default file manager with minimal setup
  • Direct navigation to Downloads/Recent or app documents
  • Uses native system file explorer
  • Simple integration via pub add command

Suitable for

  • Apps needing file access features
  • File-sharing or document management apps
  • Apps that generate or save files locally
  • Developers seeking native file browser integration
  • Projects requiring minimal file UI complexity

Considerations

  • Limited control over specific folder selection
  • Relies on device's default file manager
  • No support for custom file browsing UI
  • Behavior may vary slightly between devices
  • Does not handle file creation or editing directly

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Open File Manager

A Flutter plugin to open the default File Manager 📁 app.

Platform Support

Android iOS
SDK 21+ iOS 12+

Use of AndroidFolderType.other requires minimum SDK 26 in Android.

Features 🚀

  • Android:

    • Ability to open Recent, Downloads, and Other folders.
    • For the Other folder, you need to specify the folder path.
  • iOS:

    • Ability to open the app’s Documents folder and its subdirectories.

Please follow the iOS platform configuration ⬇️ before jump to the Dart code.

iOS Configuration

The iOS app can open the app’s Documents folder and its subdirectories if specified.

The plugin will open the Files app on iOS. To display your app’s Documents folder under On My iPhone, add the following code snippet to your Info.plist:

<key>UISupportsDocumentBrowser</key>  
<true/>

Additionally, you must save at least one file to your app’s Documents folder for it to appear in the Files app.

Code Implementation 👨‍💻

It's a super simple to implement. Just call the openFileManager method and add androidConfig for Android and iosConfig for iOS.

import 'package:open_file_manager/open_file_manager.dart';

openFileManager(
   androidConfig: AndroidConfig(
       folderType: AndroidFolderType.recent,
   ),
   iosConfig: IosConfig(
       // Path is case-sensitive here.
       folderPath: 'Reports/Sheets',
   ),
);
Default method without config:
import 'package:open_file_manager/open_file_manager.dart';

openFileManager();

If androidConfig is not provided, the Android app will open the Downloads folder by default.

If iosConfig is not provided, the iOS app will open the app's Documents folder by default.

Open Other folder on Android:

To open a specific folder on Android, you need to set folderType as AndroidFolderType.other and provide the folderPath in AndroidConfig:

import 'package:open_file_manager/open_file_manager.dart';

openFileManager(
    androidConfig: AndroidConfig(
        folderType: AndroidFolderType.other,
        folderPath: 'Pictures/Screenshots',
    ),
);

The folderPath supports the following path formats:

  • Pictures/Screenshots
  • /storage/emulated/0/Pictures/Screenshots
  • /storage/243F-4E12/Pictures/Screenshots

If folderPath does not exist, the Recent folder will be opened.

Categories

Dependencies

Dependency list 1 items

  • plugin_platform_interface^2.1.8

Source repository

Projects using this package