airplane_mode_checker
3.3.0, released 4 months ago by an unverified publisher
Check and listen to the device airplane mode status on iOS and Android.
What it does
Allows Flutter apps to check whether airplane mode is currently enabled on the device using AirplaneModeChecker.instance.checkAirplaneMode() or listen for real-time state changes using a stream.
AI-written summary of version 3.3.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to detect if network connectivity is disabled due to airplane mode.
- Your app needs to react dynamically when the user toggles airplane mode.
Skip it when
- You are targeting WiFi-only iOS devices where airplane mode cannot be reliably detected via public APIs.
- You only need general internet connectivity checking without specifically targeting airplane mode.
Strengths
- Supports both checking status once and streaming changes.
- Provides optional fallback values for iOS devices with limited API support.
Weaknesses
- Limited accuracy and support on WiFi-only iOS devices due to Apple platform constraints.
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
Requires iOS 12.0 or higher and Android API 16 or higher.
final status = await AirplaneModeChecker.instance.checkAirplaneMode();
if (status == AirplaneModeStatus.on) {
print('Airplane mode is ON');
} else {
print('Airplane mode is OFF');
}Alternatives
Packages that do the same job and could replace airplane_mode_checker.
- connectivity_plus
If you need broader network connectivity types (wifi, cellular, ethernet) rather than exclusively checking airplane mode.
97Compare
Works with
Packages commonly used together with airplane_mode_checker: ones it builds on, ones built on it, and its own family.