From fdd3d5393a5c935a601b99d34a240ca7baab4238 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=81=A5=E8=8E=B9?= Date: Sat, 27 Jan 2024 15:18:22 +0800 Subject: [PATCH] v0.2.1 --- README-ZH.md | 2 +- README.md | 2 +- packages/screen_capturer/CHANGELOG.md | 5 +++++ packages/screen_capturer/lib/src/screen_capturer.dart | 2 +- packages/screen_capturer/pubspec.yaml | 4 ++-- 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/README-ZH.md b/README-ZH.md index c42bb1b..d63649c 100644 --- a/README-ZH.md +++ b/README-ZH.md @@ -46,7 +46,7 @@ ```yaml dependencies: - screen_capturer: ^0.1.7 + screen_capturer: ^0.2.0 ``` 或 diff --git a/README.md b/README.md index 42dccd8..6d0fcb2 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ Add this to your package's pubspec.yaml file: ```yaml dependencies: - screen_capturer: ^0.1.7 + screen_capturer: ^0.2.0 ``` Or diff --git a/packages/screen_capturer/CHANGELOG.md b/packages/screen_capturer/CHANGELOG.md index c11e608..4c0158a 100644 --- a/packages/screen_capturer/CHANGELOG.md +++ b/packages/screen_capturer/CHANGELOG.md @@ -1,3 +1,8 @@ +## 0.2.1 + +* feat: Convert to federated plugin #29 +* feat: Support on KDE Plasma desktop (use spectacle command) #27 + ## 0.1.7 * fix: build in web #23 diff --git a/packages/screen_capturer/lib/src/screen_capturer.dart b/packages/screen_capturer/lib/src/screen_capturer.dart index 1c19bc2..cd765f2 100644 --- a/packages/screen_capturer/lib/src/screen_capturer.dart +++ b/packages/screen_capturer/lib/src/screen_capturer.dart @@ -41,7 +41,7 @@ class ScreenCapturer { /// /// Returns a [CapturedData] object with the image path, width, height and base64 encoded image Future capture({ - required CaptureMode mode, + CaptureMode mode = CaptureMode.region, String? imagePath, bool copyToClipboard = true, bool silent = true, diff --git a/packages/screen_capturer/pubspec.yaml b/packages/screen_capturer/pubspec.yaml index 041784d..2e7e791 100644 --- a/packages/screen_capturer/pubspec.yaml +++ b/packages/screen_capturer/pubspec.yaml @@ -1,6 +1,6 @@ name: screen_capturer -description: This plugin allows Flutter desktop apps to Retrieve information about screen size, displays, cursor position, etc. -version: 0.2.0 +description: This plugin allows Flutter desktop apps to capture screenshots. +version: 0.2.1 homepage: https://github.com/leanflutter/screen_capturer platforms: