v1.0.0secure_app_switcher
एप्लिकेशन स्विचर या कार्य सूची में एप्लिकेशन स्क्रीन पर सुरक्षा मास्किंग प्रभाव लागू करें।
arkwycr/secure_app_switcher open-source repository details.
यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
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.
import 'package:secure_app_switcher/secure_app_switcher.dart';
// ON
SecureAppSwitcher.on();
// OFF
SecureAppSwitcher.off();
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.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Secure App Switcher',
onGenerateRoute: generateRoute,
navigatorObservers: [secureAppSwitcherRouteObserver], // add
initialRoute: '/',
);
}
// 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(),
);
});
}
}
For iOS, you can specify the type of mask effect.
SecureAppSwitcher.on(iosStyle: SecureMaskStyle.blurLight);
| Light | Dark | BlurLight | BlurDark |
|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
FLAG_SECURE of WindowManager LayoutParams is used.
| switching apps | screenshot disabled |
|---|---|
![]() |
![]() |
Please file feature requests and bugs on the issue tracker.
निर्भरता सूची 4 आइटम
{"sdk":"flutter"}^2.0.2{"sdk":"flutter"}^4.0.0उपयोग के अनुसार छाँटें, गतिविधि की तुलना करें और अपनाने से पहले मूल प्रोजेक्ट की आवश्यकताएँ जाँचें।
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗