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

flutter_file_info कवर
पैकेज विवरणv0.3.0

flutter_file_info

एक फ्लटर प्लगइन जो फ़ाइल प्रकार द्वारा निर्धारित मूल आइकन सहित विस्तृत फ़ाइल मेटाडेटा के लिए प्राप्त करता है।

AndroidiOSmacOSWindows
30-दिन डाउनलोड
233
लाइक
11
Pub अंक
130

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

flutter pub add flutter_file_info

पैकेज अवलोकन

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

flutter_file_info एक Flutter प्लगइन है जो फ़ाइल के आकार, बनाने की तारीख और फ़ाइल प्रकार जैसे विस्तृत फ़ाइल मेटाडेटा को प्राप्त करने की अनुमति देता है। यह फ़ाइल एक्सटेंशन के आधार पर ऑपरेटिंग सिस्टम द्वारा निर्धारित मूल आइकन का समर्थन करता है, जिससे प्लेटफॉर्म के बीच दृश्य संगतता बढ़ती है। Android, iOS, macOS और Windows के लिए डिज़ाइन किया गया, यह फ़ाइल प्रबंधन एप्लिकेशन में बिना किसी अतिरिक्त कोड के एकीकृत होता है। यह प्लगइन सिस्टम-स्तरीय फ़ाइल जानकारी तक पहुंच को सरल बनाता है बिना प्लेटफॉर्म-विशिष्ट कोड के आवश्यकता के। इसे ऐसे एप्लिकेशन के लिए आदर्श बनाता है जिन्हें वृहद फ़ाइल प्रीव्यू या विस्तृत फ़ाइल गुणों की आवश्यकता होती है।

उपयोग

  • फ़ाइल ब्राउज़र विकास
  • मीडिया फ़ाइल मेटाडेटा निकासी
  • फ़ाइल पूर्वावलोकन थंबनेल
  • क्रॉस-प्लेटफॉर्म फ़ाइल उपयोगिताएं
  • डेस्कटॉप फ़ाइल प्रबंधन

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

  • प्रकार द्वारा मूल फ़ाइल आइकन
  • क्रॉस-प्लेटफ़ॉर्म समर्थन
  • फ़ाइल आकार और समयस्तंभ प्राप्त करना
  • सरल API एकीकरण
  • विस्तारयोग्य मेटाडेटा पहुँच

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

  • फ़ाइल एक्सप्लोरर बनाने वाले डेवलपर्स
  • फ़ाइल मेटाडेटा की आवश्यकता वाले ऐप्स
  • डेस्कटॉप और मोबाइल फ़ाइल उपकरण
  • फ़ाइल पूर्वावलोकन वाले UI
  • फ़ाइल जानकारी की आवश्यकता वाले प्लगइन

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

  • प्लेटफ़ॉर्म-विशिष्ट अनुमतियाँ आवश्यक हैं
  • मूलभूत फ़ाइल मेटाडेटा तक सीमित
  • आइकॉन रेंडरिंग ओएस पर अलग-अलग हो सकता है
  • बड़े फ़ाइल स्कैनिंग के लिए उपयुक्त नहीं
  • नीचे के ओएस फ़ाइल सिस्टम एपीआई पर निर्भर है

मूल README

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

header

Flutter Windows Tests pub package pub likes License: MIT

flutter_file_info

A Flutter plugin for retrieving detailed file metadata, including system-native file icons. You can retrieve the native icon assigned to a file based on its type, ensuring a consistent visual representation across platforms. Perfect for applications that require access to file details and icons.

Features

  • Access to native file icons.
  • Retrieval of detailed file metadata.

Compatibility Chart

API Android iOS Linux macOS Windows Web
getFileIconInfo() :heavy_check_mark: :heavy_check_mark: :x: :heavy_check_mark: :heavy_check_mark: :x:
getFileInfo() :heavy_check_mark: :heavy_check_mark: :x: :heavy_check_mark: :heavy_check_mark: :x:

iOS Deployment Target

This plugin requires a minimum iOS deployment target of 13.0. Ensure that your project is configured correctly by following these steps:

  1. Update the Podfile

    In the ios/Podfile file, set the deployment target:

    platform :ios, '13.0'
    

    After making this change, run:

    cd ios && pod install
    
  2. Update Xcode Project Settings

    1. Open your project in Xcode (ios/Runner.xcworkspace).
    2. Navigate to Runner → General.
    3. In the Deployment Info section, set iOS Deployment Target to 13.0.

These steps ensure that your project is compatible with the required iOS version.

Getting Started

Usage

Quick simple usage example:

Get icon info
IconInfo? iconInfo = await FileInfo.instance.getFileIconInfo('path/to/example/file.txt');

Widget _buildFileIcon() {
    if (iconInfo == null) return const SizedBox.shrink();
    return Image.memory(
      iconInfo!.pixelData,
      width: iconInfo!.width.toDouble(),
      height: iconInfo!.height.toDouble(),
    );
  }
Get file info
FileMetadata? fileMetadata = await FileInfo.instance.getFileInfo('path/to/example/file.txt');

if (fileMetadata != null) {
    print(fileMetadata.fileName);                    // Output: file.txt
    print(fileMetadata.fileExtension);               // Output: txt
    print(fileMetadata.fileType);                    // Output: TextDocument
    print(fileMetadata.creationTime?.toString());    // Output: 2024-08-01 17:16:26.500018
    // ...
}

Screenshots

Windows

windows_example

MacOS

macos_example

iOS

ios_example

Android

android_example

Contributing

If you would like to contribute to the development of this plugin, please fork the repository and submit a pull request. For detailed contribution guidelines, please refer to the CONTRIBUTING.md file.

License

This plugin is licensed under the MIT License.

श्रेणियाँ

निर्भरताएँ

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

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

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

अभी कोई डेटा उपलब्ध नहीं है।