Skip to content
pubscout

secure_app_switcher

1.0.0, released 2 years ago by an unverified publisher

Apply a safe masking effect or screenshot protection to the app screen in the app switcher.

WASM-readyUnverified publisher
$ flutter pub add secure_app_switcher
Source repository

What it does

Masks or blurs the app screen when users enter the system app switcher or task list on Android and iOS. It allows enabling or disabling protection globally via methods or on a screen-by-screen basis using a route observer and widget wrapper.

AI-written summary of version 1.0.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to hide sensitive financial or personal data when the app is backgrounded into the task switcher.
  • You want to prevent screenshots or hide app content selectively on specific routes.

Skip it when

  • You require customizable mask styles natively on Android (mask effect styles are iOS-specific).
  • You do not need app switcher privacy protection.

Strengths

  • Provides both global and screen-by-screen route-based control.
  • Supports distinct mask effects for iOS like blur and dark/light overlays.
  • Leverages native platform features like Android's FLAG_SECURE.

Weaknesses

  • Android mask effects and screenshot disabling cannot be customized independently like iOS.
  • On Android 11 or later, the mask effect requires switching other apps once according to OS specs.

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
No
Direct dependencies
1

Requires adding the navigator observer for route-based usage and wrapping target pages with SecureAppSwitcherPage.

import 'package:secure_app_switcher/secure_app_switcher.dart';

// Turn on app switcher masking
SecureAppSwitcher.on();

// Turn off app switcher masking
SecureAppSwitcher.off();

Alternatives

Packages that do the same job and could replace secure_app_switcher.

Works with

Packages commonly used together with secure_app_switcher: ones it builds on, ones built on it, and its own family.