mirror of
https://github.com/flutter/packages.git
synced 2025-06-30 23:03:11 +08:00

This reverts commit ca9921196a7ae96edad91a9cd7b7d8fe9f5689ff.
cross_file
An abstraction to allow working with files across multiple platforms.
Usage
Import package:cross/cross_info.dart
, instantiate a CrossFile
using a path or byte array and use its methods and properties to
access the file and its metadata.
Example:
import 'package:cross_file/cross_file.dart';
final file = CrossFile('assets/hello.txt');
print('File information:');
print('- Path: ${file.path}');
print('- Name: ${file.name}');
print('- MIME type: ${file.mimeType}');
final fileContent = await file.readAsString();
print('Content of the file: ${fileContent}'); // e.g. "Moto G (4)"
You will find links to the API docs on the pub page.
Getting Started
For help getting started with Flutter, view our online documentation.
For help on editing plugin code, view the documentation.
Description
Languages
Dart
61.3%
Java
10.1%
C++
9.8%
Swift
5.9%
Objective-C
5.3%
Other
7.4%