diff --git a/Frontend/lib/mih_packages/authentication/auth_check.dart b/Frontend/lib/mih_packages/authentication/auth_check.dart index d68bdca2..ce1fb315 100644 --- a/Frontend/lib/mih_packages/authentication/auth_check.dart +++ b/Frontend/lib/mih_packages/authentication/auth_check.dart @@ -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 { - final _noScreenshot = NoScreenshot.instance; + // final _noScreenshot = NoScreenshot.instance; Future doesSessionExist() async { //wait @@ -29,14 +29,14 @@ class _AuthCheckState extends State { 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() { diff --git a/Frontend/macos/Flutter/GeneratedPluginRegistrant.swift b/Frontend/macos/Flutter/GeneratedPluginRegistrant.swift index ef0e0f17..9ed45910 100644 --- a/Frontend/macos/Flutter/GeneratedPluginRegistrant.swift +++ b/Frontend/macos/Flutter/GeneratedPluginRegistrant.swift @@ -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")) diff --git a/Frontend/pubspec.lock b/Frontend/pubspec.lock index e35c45df..edcd8893 100644 --- a/Frontend/pubspec.lock +++ b/Frontend/pubspec.lock @@ -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: diff --git a/Frontend/pubspec.yaml b/Frontend/pubspec.yaml index f898a8eb..0b980917 100644 --- a/Frontend/pubspec.yaml +++ b/Frontend/pubspec.yaml @@ -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