open_device_settings 1.0.1
open_device_settings: ^1.0.1 copied to clipboard
A Flutter plugin to open system settings panels (WiFi, Bluetooth, NFC, Display, etc.) on Android, iOS, Windows, macOS, and Linux.
open_device_settings #
Open system settings panels from Flutter apps on Android, iOS, Windows, macOS, and Linux.
Description #
open_device_settings provides a unified Flutter API to open native system
settings screens such as WiFi, Bluetooth, display, notifications, apps, and
more.
Features #
- Open native system settings screens.
- Supports Android, iOS, Windows, macOS, and Linux.
- Check whether a settings panel is supported on the current platform.
- Open top-level system settings.
Import the package in your Dart code:
import 'package:open_device_settings/open_device_settings.dart';
Usage #
Open a settings panel #
final opened = await DeviceSettings.open(SettingsPanel.wifi);
if (!opened) {
print('Could not open WiFi settings');
}
Check if a panel is supported #
if (await DeviceSettings.isSupported(SettingsPanel.nfc)) {
await DeviceSettings.open(SettingsPanel.nfc);
}
Open general system settings #
await DeviceSettings.openSystemSettings();
Get all supported panels #
final supportedPanels = await DeviceSettings.getSupportedPanels();
Available panels #
The plugin exposes the SettingsPanel enum grouped by categories. Not all panels are available on every platform. Use DeviceSettings.isSupported(...) before opening a panel.
Network #
SettingsPanel.wifi- WiFi / wireless network settingsSettingsPanel.ethernet- Ethernet / wired network settingsSettingsPanel.bluetooth- Bluetooth settingsSettingsPanel.nfc- NFC settings (Android only)SettingsPanel.mobileData- Mobile/cellular data settings (Android & iOS)SettingsPanel.hotspot- Hotspot / tethering settings (Android)SettingsPanel.vpn- VPN settingsSettingsPanel.airplaneMode- Airplane mode settingsSettingsPanel.network- Network & internet settings (general)SettingsPanel.dataUsage- Data usage settings (Android)SettingsPanel.dns- DNS settings
Display & Appearance #
SettingsPanel.display- Display / screen settingsSettingsPanel.brightness- Brightness settingsSettingsPanel.nightMode- Night mode / blue light filter settingsSettingsPanel.wallpaper- Wallpaper settingsSettingsPanel.screenResolution- Screen resolution settingsSettingsPanel.screenTimeout- Screen timeout settingsSettingsPanel.fontSize- Font size settingsSettingsPanel.textSize- Text size & display settingsSettingsPanel.darkMode- Dark mode settingsSettingsPanel.colorCorrection- Accessibility display settings
Sound & Notifications #
SettingsPanel.sound- Sound / audio settingsSettingsPanel.volume- Volume settingsSettingsPanel.notification- Notification settingsSettingsPanel.doNotDisturb- Do not disturb / focus settingsSettingsPanel.ringtone- Ringtone settingsSettingsPanel.alarms- Alarm settingsSettingsPanel.captionSettings- Accessibility sound settings
Apps & Storage #
SettingsPanel.apps- Application / apps settingsSettingsPanel.storage- Storage / disk usage settingsSettingsPanel.defaultApps- Default apps settingsSettingsPanel.appPermissions- App permissions settingsSettingsPanel.appNotifications- App notifications settings (per-app)
Security & Privacy #
SettingsPanel.security- Security settingsSettingsPanel.privacy- Privacy settingsSettingsPanel.location- Location / GPS settingsSettingsPanel.screenLock- Screen lock / PIN / biometrics settingsSettingsPanel.fingerprint- Fingerprint settingsSettingsPanel.faceRecognition- Face recognition settingsSettingsPanel.twoFactorAuth- Two-factor authentication settingsSettingsPanel.encryption- Encryption settingsSettingsPanel.permissions- Permissions managerSettingsPanel.trustedCredentials- Trusted credentials settingsSettingsPanel.cameraMicrophone- Camera & microphone permissions
Battery & Power #
SettingsPanel.battery- Battery settingsSettingsPanel.powerSaver- Power saver / low power mode settingsSettingsPanel.batteryUsage- Battery usage statsSettingsPanel.sleep- Sleep settingsSettingsPanel.powerManagement- Power management settings
Accounts & Sync #
SettingsPanel.accounts- Accounts settingsSettingsPanel.sync- Sync settingsSettingsPanel.cloudBackup- Cloud / backup settingsSettingsPanel.googleAccount- Google account settings (Android)SettingsPanel.appleAccount- Apple ID / iCloud settings (iOS/macOS)
Hardware & Sensors #
SettingsPanel.camera- Camera settingsSettingsPanel.microphone- Microphone settingsSettingsPanel.printer- Printer settingsSettingsPanel.bluetoothDevices- Bluetooth device managementSettingsPanel.usb- USB settings (Android)SettingsPanel.touchpad- Touchpad settings (Desktop)SettingsPanel.mouse- Mouse settings (Desktop)SettingsPanel.keyboardShortcuts- Keyboard shortcuts (Desktop)SettingsPanel.multipleDisplays- Display/monitor arrangement (Desktop)
Parental Controls / Family #
SettingsPanel.parentalControls- Parental controls / screen time settingsSettingsPanel.screenTime- Screen time settings (iOS/macOS)
System & General #
SettingsPanel.about- General / about device settingsSettingsPanel.system- System settings (top-level)SettingsPanel.language- Language & input settingsSettingsPanel.keyboard- Keyboard settingsSettingsPanel.dateTime- Date & time settingsSettingsPanel.region- Region & format settingsSettingsPanel.accessibility- Accessibility settingsSettingsPanel.developerOptions- Developer options (Android)SettingsPanel.softwareUpdate- Software update / system update settingsSettingsPanel.reset- Reset / factory reset settingsSettingsPanel.backup- Backup settingsSettingsPanel.search- Search settings
Specialized (Android Specific) #
SettingsPanel.appNotificationChannel- App-specific notification channel settingsSettingsPanel.ignoreBatteryOptimization- Ignore battery optimization settingsSettingsPanel.writeSystemSettings- Write system settings permissionSettingsPanel.manageAllFiles- Manage all files accessSettingsPanel.installUnknownApps- Install unknown apps settingsSettingsPanel.usageAccess- Usage access settingsSettingsPanel.notificationListenerSettings- Notification listener settingsSettingsPanel.overlayPermission- Overlay / draw over other apps permission
Supported platforms #
- Android
- iOS
- Windows
- macOS
- Linux
Example #
The example/ folder contains a Flutter demo app showing how to use the plugin.