forked from yaso_meth/mih-project
Merge pull request #121 from yaso-meth/QOL--Remove-screen-recording-prevention
remove screenshot prevention
This commit is contained in:
@@ -3,7 +3,7 @@ import 'package:Mzansi_Innovation_Hub/mih_packages/authentication/biometric_chec
|
||||
import 'package:flutter/material.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';
|
||||
|
||||
class AuthCheck extends StatefulWidget {
|
||||
@@ -20,7 +20,7 @@ class AuthCheck extends StatefulWidget {
|
||||
}
|
||||
|
||||
class _AuthCheckState extends State<AuthCheck> {
|
||||
final _noScreenshot = NoScreenshot.instance;
|
||||
// final _noScreenshot = NoScreenshot.instance;
|
||||
|
||||
Future<bool> doesSessionExist() async {
|
||||
//wait
|
||||
@@ -29,14 +29,14 @@ class _AuthCheckState extends State<AuthCheck> {
|
||||
return signedIn;
|
||||
}
|
||||
|
||||
void disableScreenshot() async {
|
||||
try {
|
||||
bool result = await _noScreenshot.screenshotOff();
|
||||
print('Screenshot Off: $result');
|
||||
} on Exception {
|
||||
print("Web");
|
||||
}
|
||||
}
|
||||
// void disableScreenshot() async {
|
||||
// try {
|
||||
// bool result = await _noScreenshot.screenshotOff();
|
||||
// print('Screenshot Off: $result');
|
||||
// } on Exception {
|
||||
// print("Web");
|
||||
// }
|
||||
// }
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
|
||||
@@ -11,7 +11,6 @@ import flutter_tts
|
||||
import geolocator_apple
|
||||
import local_auth_darwin
|
||||
import mobile_scanner
|
||||
import no_screenshot
|
||||
import printing
|
||||
import shared_preferences_foundation
|
||||
import syncfusion_pdfviewer_macos
|
||||
@@ -25,7 +24,6 @@ func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
|
||||
GeolocatorPlugin.register(with: registry.registrar(forPlugin: "GeolocatorPlugin"))
|
||||
FLALocalAuthPlugin.register(with: registry.registrar(forPlugin: "FLALocalAuthPlugin"))
|
||||
MobileScannerPlugin.register(with: registry.registrar(forPlugin: "MobileScannerPlugin"))
|
||||
NoScreenshotPlugin.register(with: registry.registrar(forPlugin: "NoScreenshotPlugin"))
|
||||
PrintingPlugin.register(with: registry.registrar(forPlugin: "PrintingPlugin"))
|
||||
SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin"))
|
||||
SyncfusionFlutterPdfViewerPlugin.register(with: registry.registrar(forPlugin: "SyncfusionFlutterPdfViewerPlugin"))
|
||||
|
||||
@@ -824,14 +824,6 @@ packages:
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
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:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
|
||||
@@ -52,7 +52,7 @@ dependencies:
|
||||
flutter_native_splash: ^2.4.1
|
||||
#google_maps_flutter_web: ^0.5.10
|
||||
# url_strategy: ^0.3.0
|
||||
no_screenshot: ^0.3.1
|
||||
# no_screenshot: ^0.3.1
|
||||
printing: ^5.13.3
|
||||
pdf: ^3.11.1
|
||||
geolocator: ^13.0.1
|
||||
|
||||
Reference in New Issue
Block a user