Skip to content

Commit

Permalink
## 4.0.1
Browse files Browse the repository at this point in the history
* Fix error that it can't find File.length() method at web.
  • Loading branch information
zmtzawqlp committed Nov 16, 2023
1 parent 5d76df1 commit e05d994
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 4.0.1

* Fix error that it can't find File.length() method at web.

## 4.0.0

* Migrate to 3.16.0
Expand Down
7 changes: 7 additions & 0 deletions lib/src/_platform_web.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ class File {
/// is the contents of the file.
Future<Uint8List> readAsBytes() async => Uint8List.fromList(<int>[]);

/// The length of the file.
///
/// Returns a `Future<int>` that completes with the length in bytes.
Future<int> length() async {
return 0;
}

/// The path of the file underlying this random access file.
final String path;
}
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: extended_image_library
description: package library for extended_image, extended_text and extended_text_field, provide common base class.
version: 4.0.0
version: 4.0.1
homepage: https://github.com/fluttercandies/extended_image_library

environment:
Expand Down

0 comments on commit e05d994

Please sign in to comment.