open_file_manager 1.0.2 copy "open_file_manager: ^1.0.2" to clipboard
open_file_manager: ^1.0.2 copied to clipboard

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.

A flutter plugin to open the default file manager app.

Support #

Android iOS
Support SDK 20+ iOS 12+

How it works? #

Android #

The Android app can open either Recent folder or Download folder. The plugin will show the available file manager apps in the bottom popup and you can select one app to open. That app will open with the given folder in selected app.

iOS #

The iOS app can open app's document folder and it's sub directory if provided. Plugin will open the Files app in iOS. You need to add the following code snippet in Info.plist to view your app's document folder inside On My iPhone. Also, you need to save at least one file to view your app's folder.

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

Usage #

It's a very simple to use. Just call the below method and add config if required.

import 'package:open_file_manager/open_file_manager.dart'

openFileManager(
   androidConfig: AndroidConfig(
       folderType: FolderType.recent,
   ),
   iosConfig: IosConfig(
       // Path is case-sensitive here.
       subFolderPath: 'Pictures/Screenshots',
   ),
);
  • If androidConfig doesn't provided, Android app will open Download folder by default.
  • If iosConfig doesn't provided, iOS app will open app's document folder by default.

Preview #

https://github.com/nayanAubie/open_file_manager/assets/109264909/57ecd7be-a526-45d8-a138-7ca7dcd255ca

https://github.com/nayanAubie/open_file_manager/assets/109264909/862bf858-49f1-4c4d-8c8e-22cbafb1d33c

18
likes
140
pub points
93%
popularity

Publisher

verified publisherauberginesolutions.com

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.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on open_file_manager