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 ↗