secure_app_switcher

Creator: coderz1093

Last updated:

0 purchases

secure_app_switcher Image
secure_app_switcher Images
Add to Cart

Description:

secure app switcher

secure_app_switcher #
Apply a safe masking effect to the app screen on the app switcher or task list.
Functions can be enabled/disabled within any process. It also provides a mechanism for switching functions on a screen-by-screen basis.
The effect is different for iOS and Android.
Usage #
Use functions within arbitrary processing #
import 'package:secure_app_switcher/secure_app_switcher.dart';

// ON
SecureAppSwitcher.on();

// OFF
SecureAppSwitcher.off();
copied to clipboard
Use functions on specific screens #
It is necessary to set secureAppSwitcherRouteObserver to switch the function at the time of screen transition.
Wrap the target screen widget with MaterialPageRoute and SecureAppSwitcherPage.

secureAppSwitcherRouteObserver

@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Secure App Switcher',
onGenerateRoute: generateRoute,
navigatorObservers: [secureAppSwitcherRouteObserver], // add
initialRoute: '/',
);
}
copied to clipboard

SecureAppSwitcherPage, MaterialPageRoute

// Example: Case where the function is enabled on screen A

Route<dynamic> generateRoute(RouteSettings settings) {
switch (settings.name) {
case "/":
return MaterialPageRoute(builder: (context) {
return const HomeScreen();
});
case "/screenA":
return MaterialPageRoute(builder: (context) {
return const SecureAppSwitcherPage( // add
style: SecureMaskStyle.dark,
child: ScreenA(),
);
});
}
}
copied to clipboard
iOS #
For iOS, you can specify the type of mask effect.
SecureAppSwitcher.on(iosStyle: SecureMaskStyle.blurLight);
copied to clipboard

Types of mask effects




Light
Dark
BlurLight
BlurDark











Android #
FLAG_SECURE of WindowManager LayoutParams is used.

WindowManager.LayoutParams | Android Developers




switching apps
screenshot disabled










The type of mask effect cannot be specified like iOS.
In Android 11 or later, the mask effect is reflected by switching other apps once according to the specifications of Android OS.
Taking screenshots is not allowed when the feature is enabled.

Features and bugs #
Please file feature requests and bugs on the issue tracker.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.

Related Products

More From This Creator