π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Added: When the app is in the background, hided te contents of the app (#387)
Muhammed Ayimen Abdul Latheef1a654fe7484c
diff --git a/lib/main.dart b/lib/main.dartindex 4f82fffe34..e5c81304a7 100644--- a/lib/main.dart+++ b/lib/main.dart@@ -24,6 +24,7 @@ import "package:flutter/material.dart";import 'package:flutter_displaymode/flutter_displaymode.dart';import 'package:logging/logging.dart';import 'package:path_provider/path_provider.dart';+import 'package:privacy_screen/privacy_screen.dart';final _logger = Logger("main");@@ -31,6 +32,22 @@ void main() async {WidgetsFlutterBinding.ensureInitialized();final savedThemeMode = await AdaptiveTheme.getThemeMode();await _runInForeground(savedThemeMode);+ await PrivacyScreen.instance.enable(+ iosOptions: const PrivacyIosOptions(+ enablePrivacy: true,+ privacyImageName: "LaunchImage",+ lockTrigger: IosLockTrigger.didEnterBackground,+ ),+ androidOptions: const PrivacyAndroidOptions(+ enableSecure: true,+ ),+ backgroundColor: savedThemeMode == AdaptiveThemeMode.dark+ ? Colors.black+ : Colors.white,+ blurEffect: savedThemeMode == AdaptiveThemeMode.dark+ ? PrivacyBlurEffect.dark+ : PrivacyBlurEffect.extraLight,+ );FlutterDisplayMode.setHighRefreshRate();}diff --git a/pubspec.lock b/pubspec.lockindex be8b19c1dc..10c1a4093b 100644--- a/pubspec.lock+++ b/pubspec.lock@@ -1047,6 +1047,14 @@ packages:url: "https://pub.dev"source: hostedversion: "1.5.1"+ privacy_screen:+ dependency: "direct main"+ description:+ name: privacy_screen+ sha256: b80297d2726d96e8a8341149e81a415302755f02d3af7c05c820d9e191bbfbee+ url: "https://pub.dev"+ source: hosted+ version: "0.0.6"process:dependency: transitivedescription:diff --git a/pubspec.yaml b/pubspec.yamlindex 5409ff39b5..cb8eda5d76 100644--- a/pubspec.yaml+++ b/pubspec.yaml@@ -67,6 +67,7 @@ dependencies:path_provider: ^2.0.11pinput: ^1.2.2pointycastle: ^3.7.3+ privacy_screen: ^0.0.6protobuf: ^3.0.0qr_code_scanner: ^1.0.1qr_flutter: 4.0.0