Skip to content

Commit

Permalink
fixed README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
TesteurManiak committed Nov 21, 2022
1 parent 70102bd commit c6f6f60
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 17 deletions.
34 changes: 19 additions & 15 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,70 +1,74 @@
## 3.0.0 - [21/11/2022]
## 3.0.0+1

* Fixed README.md

## 3.0.0

* **[BREAKING CHANGES]** Removed deprecated methods `getImage`, `getMultiImages` and `getVideo`
* Added methods `getMultiVideosAsBytes`, `getMultiVideosAsFile`

## 2.1.1 - [22/03/2022]
## 2.1.1

* Updated example project to null safety.
* Fixed potential issue with null value for methods `getImageInfo`, `getVideoAsBytes` and `getVideoInfo`.

## 2.1.0 - [14/12/2021]
## 2.1.0

* Deprecated `getImage`, `getMultiImages` and `getVideo` methods.
* Added methods `getImageAsBytes`, `getImageAsWidget`, `getImageAsFile`, `getMultiImagesAsBytes`, `getMultiImagesAsWidget`, `getMultiImagesAsFile`, `getVideoAsFile` and `getVideoAsBytes` ([#29](https://github.com/Ahmadre/image_picker_web/issues/29))

## 2.0.3+1 - [27/06/2021]
## 2.0.3+1

* Fixed a typo in the `README.md`

## 2.0.3 - [15/06/2021]
## 2.0.3

* Fixed issue [#25](https://github.com/Ahmadre/image_picker_web/issues/25) when clicking on cancel or close buttons
* Improved example file

## 2.0.2 - [27/04/2021]
## 2.0.2

* Fixed issue [#22](https://github.com/Ahmadre/image_picker_web/issues/22)

## 2.0.1 - [30/03/2021]
## 2.0.1

* Fixed `FutureOr<Map<String, dynamic>>` cast

## 2.0.0 - [27/03/2021]
## 2.0.0

* **Breaking Changes**: migrated code to nullsafety
* Removed deprecated properties

## 1.1.3 - [06/10/2020]
## 1.1.3

* Added `toJson` method to `MediaInfo`
* Fixed `getImageInfo` and `getVideoInfo`
* Updated `example/main.dart`

## 1.1.2+1 - [06/10/2020]
## 1.1.2+1

* Fixed `pickImage` and `pickVideo`

## 1.1.2 - [06/10/2020]
## 1.1.2

* Fixed compatibility with iOS web browser

## 1.1.1 - [02/10/2020]
## 1.1.1

* Upgraded minimum sdk to `>=2.7.0`
* Added new `ImageType.mediaInfo`
* Made some code refacto

## 1.1.0+2 - [01/09/2020]
## 1.1.0+2

* Update README.md

## 1.1.0+1 - [01/09/2020]
## 1.1.0+1

* Format code to dartfm standard
* Added comments

## 1.1.0 - [01/09/2020]
## 1.1.0

* Retake of the discontinued package [image_picker_web](https://pub.dev/packages/image_picker_web)
* Refacto of method `getImage`
Expand Down
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

This Web-Plugin allows Flutter Web to pick images (as File, Widget or Uint8List) and videos (as File or Uint8List). Many thanks goes to [AlvaroVasconcelos](https://github.com/AlvaroVasconcelos) for the implementation of picking images in his plugin: [flutter_web_image_picker](https://github.com/AlvaroVasconcelos/flutter_web_image_picker)

![ExampleGif](https://github.com/TesteurManiak/image_picker_web/blob/master/assets/exampleupload.gif)
![ExampleGif](https://raw.githubusercontent.com/Ahmadre/image_picker_web/master/assets/exampleupload.gif)

### Disclaimer for Videos

Expand Down Expand Up @@ -122,3 +122,17 @@ After you uploaded your video somewhere hosted, you can retreive the network url
### MediaInfos

* The methods ```getVideoInfo``` and ```getImageInfo``` are also available and you can use them to retreive further informations about your picked source.

### Pick multiple images

Load videos as bytes:

```dart
List<Uint8List>? videos = ImagePickerWeb.getMultiVideosAsBytes();
```

Load videos as `List<html.File>` objects :

```dart
List<html.File>? videoFiles = await ImagePickerWeb.getMultiVideosAsFile();
```
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: image_picker_web
description: Flutter Web Plugin to pick Images (as Widget, File or Uint8List)
and Videos (as File or Uint8List)
version: 3.0.0
version: 3.0.0+1
repository: https://github.com/Ahmadre/image_picker_web

environment:
Expand Down

0 comments on commit c6f6f60

Please sign in to comment.