status_bar_control
4.0.0, released 2 weeks ago by rafaelmaeuer.de
Control status bar and navigation bar color, style, visibility, and translucent properties.
What it does
Allows developers to imperatively control the device's status bar and navigation bar appearance across Android and iOS. You can change colors, adjust themes, toggle visibility, and manage translucent properties or full-screen modes.
AI-written summary of version 4.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need programmatic control over status bar and navigation bar colors or styles.
- You are building an app that requires custom edge-to-edge styling or hiding the status bar dynamically.
Skip it when
- You only need standard declarative Flutter SystemUiOverlayStyle wrappers.
- You need extensive non-status-bar device features not covered by this package.
Strengths
- Supports both Android and iOS with additional Android navigation bar methods.
- Updated to support modern Android edge-to-edge requirements (Android 15+) and Swift Package Manager.
Weaknesses
- Platform support varies for certain methods (e.g., network activity indicator is iOS-only; navigation bar features are Android-only).
- Imperative approach requires awaiting futures rather than declarative widget configurations.
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
On iOS, you may need to add UIViewControllerBasedStatusBarAppearance false to Info.plist. On Android, you may optionally add windowLayoutInDisplayCutoutMode to styles.xml.
await StatusBarControl.setColor(Colors.green, animated: true);Alternatives
Packages that do the same job and could replace status_bar_control.
- check_vpn_connection
Check whether a VPN connection is active on your device.
46Compare