Merge pull request #121 from yaso-meth/QOL--Remove-screen-recording-prevention

remove screenshot prevention
This commit is contained in:
yaso-meth
2025-03-27 09:26:32 +02:00
committed by GitHub
4 changed files with 11 additions and 21 deletions

View File

@@ -3,7 +3,7 @@ import 'package:Mzansi_Innovation_Hub/mih_packages/authentication/biometric_chec
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:supertokens_flutter/supertokens.dart'; import 'package:supertokens_flutter/supertokens.dart';
import 'package:no_screenshot/no_screenshot.dart'; // import 'package:no_screenshot/no_screenshot.dart';
import 'signin_or_register.dart'; import 'signin_or_register.dart';
class AuthCheck extends StatefulWidget { class AuthCheck extends StatefulWidget {
@@ -20,7 +20,7 @@ class AuthCheck extends StatefulWidget {
} }
class _AuthCheckState extends State<AuthCheck> { class _AuthCheckState extends State<AuthCheck> {
final _noScreenshot = NoScreenshot.instance; // final _noScreenshot = NoScreenshot.instance;
Future<bool> doesSessionExist() async { Future<bool> doesSessionExist() async {
//wait //wait
@@ -29,14 +29,14 @@ class _AuthCheckState extends State<AuthCheck> {
return signedIn; return signedIn;
} }
void disableScreenshot() async { // void disableScreenshot() async {
try { // try {
bool result = await _noScreenshot.screenshotOff(); // bool result = await _noScreenshot.screenshotOff();
print('Screenshot Off: $result'); // print('Screenshot Off: $result');
} on Exception { // } on Exception {
print("Web"); // print("Web");
} // }
} // }
@override @override
void initState() { void initState() {

View File

@@ -11,7 +11,6 @@ import flutter_tts
import geolocator_apple import geolocator_apple
import local_auth_darwin import local_auth_darwin
import mobile_scanner import mobile_scanner
import no_screenshot
import printing import printing
import shared_preferences_foundation import shared_preferences_foundation
import syncfusion_pdfviewer_macos import syncfusion_pdfviewer_macos
@@ -25,7 +24,6 @@ func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
GeolocatorPlugin.register(with: registry.registrar(forPlugin: "GeolocatorPlugin")) GeolocatorPlugin.register(with: registry.registrar(forPlugin: "GeolocatorPlugin"))
FLALocalAuthPlugin.register(with: registry.registrar(forPlugin: "FLALocalAuthPlugin")) FLALocalAuthPlugin.register(with: registry.registrar(forPlugin: "FLALocalAuthPlugin"))
MobileScannerPlugin.register(with: registry.registrar(forPlugin: "MobileScannerPlugin")) MobileScannerPlugin.register(with: registry.registrar(forPlugin: "MobileScannerPlugin"))
NoScreenshotPlugin.register(with: registry.registrar(forPlugin: "NoScreenshotPlugin"))
PrintingPlugin.register(with: registry.registrar(forPlugin: "PrintingPlugin")) PrintingPlugin.register(with: registry.registrar(forPlugin: "PrintingPlugin"))
SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin")) SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin"))
SyncfusionFlutterPdfViewerPlugin.register(with: registry.registrar(forPlugin: "SyncfusionFlutterPdfViewerPlugin")) SyncfusionFlutterPdfViewerPlugin.register(with: registry.registrar(forPlugin: "SyncfusionFlutterPdfViewerPlugin"))

View File

@@ -824,14 +824,6 @@ packages:
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "0.0.27" version: "0.0.27"
no_screenshot:
dependency: "direct main"
description:
name: no_screenshot
sha256: ec3d86d7ee89a09c3a3939c1003012536ba4b3fcb4f8cbd23d87ada595c99258
url: "https://pub.dev"
source: hosted
version: "0.3.1"
ollama_dart: ollama_dart:
dependency: "direct main" dependency: "direct main"
description: description:

View File

@@ -52,7 +52,7 @@ dependencies:
flutter_native_splash: ^2.4.1 flutter_native_splash: ^2.4.1
#google_maps_flutter_web: ^0.5.10 #google_maps_flutter_web: ^0.5.10
# url_strategy: ^0.3.0 # url_strategy: ^0.3.0
no_screenshot: ^0.3.1 # no_screenshot: ^0.3.1
printing: ^5.13.3 printing: ^5.13.3
pdf: ^3.11.1 pdf: ^3.11.1
geolocator: ^13.0.1 geolocator: ^13.0.1