File tree Expand file tree Collapse file tree 6 files changed +17
-11
lines changed
Expand file tree Collapse file tree 6 files changed +17
-11
lines changed Original file line number Diff line number Diff line change 55## 0.0.2
66
77- feat: fully support IOS on restricting screenshot and screen recording
8+
9+ ## 0.0.3
10+
11+ - docs: documentation update
12+ - feat: allow support on previous dart version
Original file line number Diff line number Diff line change 1616
1717 ``` yaml
1818 dependencies :
19- screenshot_guard : ^{version}
19+ screenshot_guard : ^<latest>
2020 ` ` `
2121
22222. Run the ` flutter pub get` to fetch the package.
@@ -54,12 +54,13 @@ class ScreenshotGuardExample extends StatefulWidget {
5454
5555class _ScreenshotGuardExampleState extends State<ScreenshotGuardExample> {
5656 bool isProtected = false;
57+ final _screenshotGuardPlugin = ScreenshotGuard();
5758
5859 void toggleProtection() async {
5960 if (isProtected) {
60- await ScreenshotGuard() .enableSecureFlag(false);
61+ _screenshotGuardPlugin .enableSecureFlag(false);
6162 } else {
62- await ScreenshotGuard() .enableSecureFlag(true);
63+ _screenshotGuardPlugin .enableSecureFlag(true);
6364 }
6465 setState(() {
6566 isProtected = !isProtected;
@@ -100,7 +101,7 @@ class _ScreenshotGuardExampleState extends State<ScreenshotGuardExample> {
100101
101102- Description : Enables or disables the secure flag to control screenshot and screen recording
102103- Parameters :
103- `enable` : A boolean (`tru`e to enable protection, `false` to disable it).
104+ `enable` : A boolean (`true` to enable protection, `false` to disable it).
104105- Returns : A `Future<void>`
105106
106107# Contributions
Original file line number Diff line number Diff line change 33 - integration_test (0.0.1):
44 - Flutter
55 - ScreenProtectorKit (1.3.1)
6- - screenshot_guard (0.0.1 ):
6+ - screenshot_guard (0.0.3 ):
77 - Flutter
88 - ScreenProtectorKit (~> 1.3.1)
99
@@ -29,7 +29,7 @@ SPEC CHECKSUMS:
2929 Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
3030 integration_test: 252f60fa39af5e17c3aa9899d35d908a0721b573
3131 ScreenProtectorKit: 83a6281b02c7a5902ee6eac4f5045f674e902ae4
32- screenshot_guard: fa7e20ce310937747b8149d84a2f4b009b5333ed
32+ screenshot_guard: db3e9ed4ee94f2db90e7bc792a28e18d9d467961
3333
3434PODFILE CHECKSUM: 864620248d353e26c8fd7a1ee6b0cf275b9a0138
3535
Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ packages:
192192 path: ".."
193193 relative: true
194194 source: path
195- version: "0.0.1 "
195+ version: "0.0.3 "
196196 sky_engine:
197197 dependency: transitive
198198 description: flutter
Original file line number Diff line number Diff line change 44#
55Pod ::Spec . new do |s |
66 s . name = 'screenshot_guard'
7- s . version = '0.0.2 '
7+ s . version = '0.0.3 '
88 s . summary = 'A Flutter plugin for restricting screenshot and screen recording.'
99 s . description = <<-DESC
1010A new Flutter plugin project.
Original file line number Diff line number Diff line change 11name : screenshot_guard
22description : " A Flutter plugin to protect your app from screenshots and screen recordings"
3- version : 0.0.2
3+ version : 0.0.3
44homepage : https://github.com/TheCodeDaniel/screenshot_guard.git
55
66environment :
7- sdk : ^3.6.0
8- flutter : " >=3.3 .0"
7+ sdk : " >=3.0.0 <4.0.0 "
8+ flutter : " >=2.12 .0"
99
1010dependencies :
1111 flutter :
You can’t perform that action at this time.
0 commit comments