[CrossFile] Fix class name in readme (#383)

It says you have to use a class CrossFile which doesn't even exist in the package. It must be XFile.
This commit is contained in:
Jonas Uekötter
2021-06-23 17:47:13 +02:00
committed by GitHub
parent 5ec330f81d
commit 7277bd72c6
3 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
## 0.3.1+3
* Fix example in README
## 0.3.1+2
* Fix package import in README

View File

@ -13,7 +13,7 @@ Example:
```dart
import 'package:cross_file/cross_file.dart';
final file = CrossFile('assets/hello.txt');
final file = XFile('assets/hello.txt');
print('File information:');
print('- Path: ${file.path}');

View File

@ -2,7 +2,7 @@ name: cross_file
description: An abstraction to allow working with files across multiple platforms.
repository: https://github.com/flutter/packages/tree/master/packages/cross_file
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+cross_file%22
version: 0.3.1+2
version: 0.3.1+3
environment:
sdk: ">=2.12.0 <3.0.0"