flutter_file_info

Last updated:

0 purchases

flutter_file_info Image
flutter_file_info Images
Add to Cart

Description:

flutter file info

flutter_file_info #
A Flutter plugin for retrieving detailed file metadata, including native icons. Ideal for applications needing file information and icons.
Currently supported features #

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

Compatibility Chart #



API
Android
iOS
Linux
macOS
Windows
Web




getFileIconInfo()
✔️



✔️



getFileInfo()
✔️



✔️




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(),
);
}
copied to clipboard
Fet file info
FileMetadata? _fileMetatdata = await FileInfo.instance.getFileInfo('path/to/example/file.txt');

if (_fileMetatdata != null) {
pritn(fileMetadata.fileName); // Output: file.txt
pritn(fileMetadata.fileExtension); // Output: txt
pritn(fileMetadata.fileType); // Output: TextDocument
pritn(fileMetadata.creationTime?.toString()); // Output: 2024-08-01 17:16:26.500018
// ...
}
copied to clipboard
Screenshots #
Windows #

Android #

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.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.