flutter_windowmanager_plus
1.1.1, released 2 months ago by vexellab.com
A Flutter plugin for dynamic control of Android window modes and WindowManager LayoutParams.
What it does
Allows Flutter developers to dynamically manipulate Android window flags, such as disabling screenshots using FLAG_SECURE or keeping the screen on, on a per-screen basis. It automatically tracks applied flags and re-applies them when Android recreates the Activity.
AI-written summary of version 1.1.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to disable screenshots or screen recording for specific screens on Android.
- You need to dynamically adjust window flags like FLAG_KEEP_SCREEN_ON from within your Flutter code.
Skip it when
- You are targeting iOS or other non-Android platforms, as the package only supports Android.
- You require cross-platform window management or secure screen solutions out-of-the-box.
Strengths
- Provides fine-grained, dynamic control over Android WindowManager flags per screen.
- Automatically survives Activity recreation (such as rotation or locale changes).
- Acts as an actively maintained successor to the unmaintained flutter_windowmanager.
Weaknesses
- Android-only; has no iOS support or plans for iOS.
- Other flags beyond FLAG_SECURE have not been extensively tested.
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
No special permissions or setup steps are required beyond depending on the package.
await FlutterWindowManagerPlus.addFlags(FlutterWindowManagerPlus.FLAG_SECURE);Alternatives
Packages that do the same job and could replace flutter_windowmanager_plus.
- flutter_windowmanager
A Flutter plugin for manipulating Android WindowManager LayoutParams dynamically at run-time.
48Compare