Skip to content

Commit 593ff85

Browse files
committed
Release 1.2.3
1 parent 5f6bf2e commit 593ff85

File tree

5 files changed

+25
-20
lines changed

5 files changed

+25
-20
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1+
## [1.2.3] - 15/07/2021
2+
* Support Inheriting Theme for Invisible Widget
3+
14
## [1.2.2] - 14/07/2021
25
* Add pixelRatio to captureFromWidget @hashirshoaeb
36
* Fix assertion issue
7+
48
## [1.2.1] - 13/06/2021
59
* Removal of compilation warning @yanivshaked
610

README.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,25 @@ screenshotController.captureAndSave(
100100
If you want to save captured image to Gallery, Please use https://github.com/hui-z/image_gallery_saver
101101
Example app uses the same to save screenshots to gallery.
102102

103-
### Note:
103+
---
104+
105+
##Sharing Captured Images
106+
107+
```dart
108+
await _screenshotController.capture(delay: const Duration(milliseconds: 10)).then((Uint8List image) async {
109+
if (image != null) {
110+
final directory = await getApplicationDocumentsDirectory();
111+
final imagePath = await File('${directory.path}/image.png').create();
112+
await imagePath.writeAsBytes(image);
113+
114+
/// Share Plugin
115+
await Share.shareFiles([imagePath.path]);
116+
}
117+
});
118+
```
119+
120+
---
121+
## Note:
104122
Captured image may look pixelated. You can overcome this issue by setting value for **pixelRatio**
105123

106124
>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.
@@ -128,5 +146,5 @@ screenshotController.capture(delay: Duration(milliseconds: 10))
128146
```
129147
---
130148
## Known Issues
131-
- **`Platform Views are not supported. (Example: Google Maps, Camera etc)`**
149+
- **`Platform Views are not supported. (Example: Google Maps, Camera etc)`[issue](https://github.com/flutter/flutter/issues/83856)**
132150
---

example/assets/images/2mb.jpg

-2.19 MB
Binary file not shown.

lib/src/platform_specific/file_manager/file_manager_mobile.dart

Lines changed: 0 additions & 17 deletions
This file was deleted.

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: screenshot
22
description: Flutter Screenshot Package (Runtime). Capture any Widget as an image.
3-
version: 1.2.2
3+
version: 1.2.3
44
homepage: https://github.com/SachinGanesh/screenshot
55

66
environment:

0 commit comments

Comments
 (0)