Skip to content

Commit

Permalink
Release 1.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
ritheshSalyan committed Jul 16, 2021
1 parent 5f6bf2e commit 593ff85
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 20 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
## [1.2.3] - 15/07/2021
* Support Inheriting Theme for Invisible Widget

## [1.2.2] - 14/07/2021
* Add pixelRatio to captureFromWidget @hashirshoaeb
* Fix assertion issue

## [1.2.1] - 13/06/2021
* Removal of compilation warning @yanivshaked

Expand Down
22 changes: 20 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,25 @@ screenshotController.captureAndSave(
If you want to save captured image to Gallery, Please use https://github.com/hui-z/image_gallery_saver
Example app uses the same to save screenshots to gallery.

### Note:
---

##Sharing Captured Images

```dart
await _screenshotController.capture(delay: const Duration(milliseconds: 10)).then((Uint8List image) async {
if (image != null) {
final directory = await getApplicationDocumentsDirectory();
final imagePath = await File('${directory.path}/image.png').create();
await imagePath.writeAsBytes(image);
/// Share Plugin
await Share.shareFiles([imagePath.path]);
}
});
```

---
## Note:
Captured image may look pixelated. You can overcome this issue by setting value for **pixelRatio**

>The pixelRatio describes the scale between the logical pixels and the size of the output image. It is independent of the window.devicePixelRatio for the device, so specifying 1.0 (the default) will give you a 1:1 mapping between logical pixels and the output pixels in the image.
Expand Down Expand Up @@ -128,5 +146,5 @@ screenshotController.capture(delay: Duration(milliseconds: 10))
```
---
## Known Issues
- **`Platform Views are not supported. (Example: Google Maps, Camera etc)`**
- **`Platform Views are not supported. (Example: Google Maps, Camera etc)`[issue](https://github.com/flutter/flutter/issues/83856)**
---
Binary file removed example/assets/images/2mb.jpg
Binary file not shown.
17 changes: 0 additions & 17 deletions lib/src/platform_specific/file_manager/file_manager_mobile.dart

This file was deleted.

2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: screenshot
description: Flutter Screenshot Package (Runtime). Capture any Widget as an image.
version: 1.2.2
version: 1.2.3
homepage: https://github.com/SachinGanesh/screenshot

environment:
Expand Down

0 comments on commit 593ff85

Please sign in to comment.