पैकेज, रिपॉज़िटरी और ऐप श्रेणियाँ खोजें

पैकेज विवरणv2.1.0

open_file_manager

एक फ्लटर प्लगइन जो डिफ़ॉल्ट फाइल मैनेजर ऐप खोलता है। एंड्रॉइड पर, यह फाइल मैनेजर ऐप में डाउनलोड/हाल के फोल्डर खोलता है। आईओएस पर, यह फाइल्स ऐप में ऐप के डॉक्यूमेंट फोल्डर खोलता है।

AndroidiOS
30-दिन डाउनलोड
14.6 हज़ार
लाइक
39
Pub अंक
160

पैकेज इंस्टॉल करें

flutter pub add open_file_manager

पैकेज अवलोकन

सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।

एक फ्लटर प्लगइन जो डिवाइस के डिफ़ॉल्ट फ़ाइल मैनेजर ऐप को खोलता है। एंड्रॉइड पर, यह डाउनलोड या हाल के फ़ोल्डर में नेविगेट करता है; आईओएस पर, यह फ़ाइल्स ऐप में ऐप के डॉक्यूमेंट डायरेक्टरी खोलता है। इससे उपयोगकर्ता अपने ऐप संदर्भ में आसानी से फ़ाइलों को एक्सेस और प्रबंधित कर सकते हैं, बिना कस्टम फ़ाइल ब्राउज़िंग इंटरफ़ेस के आवश्यकता के। प्लगइन नेटिव सिस्टम व्यवहार का उपयोग करके फ़ाइल नेविगेशन को सरल बनाता है, जिससे प्लेटफ़ॉर्म के बीच एक सुसंगत उपयोगकर्ता अनुभव सुनिश्चित होता है।

उपयोग

  • फ़ाइल ऐप में एप्लिकेशन-विशिष्ट दस्तावेज़ खोलें
  • हाल ही में या डाउनलोड किए गए फ़ाइल्स तक नेविगेट करें
  • एप्लिकेशन के भीतर उपयोगकर्ता फ़ाइल प्रबंधन सक्षम करना
  • फ़ाइल सहेजने के कार्यप्रवाहों के साथ एकीकरण
  • एप्लिकेशन स्टोरेज डायरेक्टरी तक त्वरित पहुंच प्रदान करना

मुख्य विशेषताएँ

  • क्रॉस-प्लेटफ़ॉर्म सुविधा (Android और iOS)
  • न्यूनतम सेटअप के साथ डिफ़ॉल्ट फ़ाइल मैनेजर खोलें
  • डाउनलोड्स/हाल ही या ऐप डॉक्यूमेंट्स में सीधे नेविगेट करें
  • प्राकृतिक प्रणाली फ़ाइल एक्सप्लोरर का उपयोग करता है
  • pub add कमांड के माध्यम से सरल एकीकरण

इनके लिए उपयुक्त

  • फ़ाइल एक्सेस फीचर्स की आवश्यकता वाले ऐप्स
  • फ़ाइल साझाकरण या दस्तावेज प्रबंधन ऐप
  • स्थानीय फ़ाइलों को जनरेट या सहेजने वाले ऐप्स
  • मूल फ़ाइल ब्राउज़र एकीकरण की तलाश में विकासकर्ता
  • न्यूनतम फ़ाइल UI जटिलता की आवश्यकता वाले प्रोजेक्ट

विचार योग्य बातें

  • विशिष्ट फोल्डर चयन पर सीमित नियंत्रण
  • उपकरण के डिफ़ॉल्ट फ़ाइल मैनेजर पर निर्भर करता है
  • कस्टम फ़ाइल ब्राउज़िंग UI का समर्थन नहीं है
  • उपकरणों के बीच व्यवहार में हल्के अंतर हो सकते हैं
  • फ़ाइल निर्माण या संपादन को सीधे हैंडल नहीं करता है

मूल README

संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।

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.

श्रेणियाँ

निर्भरताएँ

निर्भरता सूची 1 आइटम

  • plugin_platform_interface^2.1.8

सोर्स रिपॉज़िटरी

इस पैकेज का उपयोग करने वाले प्रोजेक्ट