搜索插件、代码仓与 APP 分类

插件详情v0.5.1

open_settings_plus

最完整的 Flutter 插件包,用于打开各种设置屏幕,涵盖较新的 iOS 和 Android 版本。

AndroidiOS
近 30 天下载
7.3万
喜欢数
110
Pub 分数
160

安装插件

flutter pub add open_settings_plus

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

open_settings_plus 是一个全面的 Flutter 插件,可在 Android 和 iOS 设备上实现无缝导航至各种系统设置屏幕。它支持现代操作系统版本,并提供对 Wi-Fi、蓝牙、位置等关键设置的可靠访问。该插件专为跨平台一致性设计,通过最少的代码即可让开发者打开特定的系统设置,简化用户体验。该插件持续维护且文档完善,非常适合需要快速访问设备配置的应用。

适合场景

  • 从应用内打开 Wi-Fi 设置
  • 正在转到蓝牙配置屏幕
  • 引导用户前往位置服务设置
  • 启用快速访问电池优化设置
  • 引导用户前往应用权限设置
  • 通过直接设置访问改进入职流程

主要特点

  • 支持 Android 和 iOS 平台
  • 涵盖现代操作系统版本
  • 简单 API,方法名称清晰
  • 跨平台一致性
  • 活跃维护和更新
  • 全面的文档

适合对象

  • 需要系统设置访问权限的应用
  • 入门或设置向导
  • 权限请求指南
  • 设备配置助手
  • 用户支持工具
  • 具有连接功能的移动应用

使用建议

  • 需要适当的平台权限
  • 在较旧的操作系统版本上行为可能不同
  • 仅限打开系统设置(无法修改)
  • 依赖于操作系统级别的实现
  • 不适用于直接修改设置
  • 用户可能需要手动确认操作

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

open_settings_plus

A comprehensive Flutter plugin to seamlessly navigate to various settings screens on both iOS and Android devices, ensuring compatibility with the latest versions of both platforms.

Known Issues

We are aware that the shortcuts in open_settings_plus are not functioning properly on the latest versions of iOS 18. This issue is currently under investigation, but progress has been challenging due to the lack of documentation or online resources regarding the new URL schemes.

A fix is being actively worked on and will be released as soon as possible.

📦 Installation

Add open_settings_plus to your pubspec.yaml as usual. On iOS, the plugin supports both CocoaPods and Swift Package Manager (SPM). CocoaPods remains supported for existing Flutter projects, while SPM is available when using Flutter 3.41.0 or newer with Flutter's Swift Package Manager integration enabled. The iOS deployment target is 12.0.

🚀 Usage

To integrate open_settings_plus into your project, add it as a dependency in your pubspec.yaml file.

import 'package:flutter/material.dart';
import 'package:open_settings_plus/open_settings_plus.dart';

void main() => runApp(MaterialApp(
      home: Scaffold(
        body: Center(
          child: ElevatedButton(
            onPressed: () {
              switch (OpenSettingsPlus.shared) {
                OpenSettingsPlusAndroid settings => settings.wifi(),
                OpenSettingsPlusIOS settings => settings.wifi(),
                _ => throw Exception('Platform not supported'),
              }
            },
            child: Text('Wi-Fi Settings'),
          ),
        ),
      ),
    )
  );

For more examples and use-cases, refer to the example directory.

🌟 Features

Android:

Navigate directly to:

  • Wi-Fi
  • Data Roaming
  • Location Source
  • App Settings
  • Bluetooth
  • Notifications
  • Security
  • Sound
  • Display
  • Date & Time
  • Device Information
  • Internal Storage
  • Memory Card
  • Accessibility
  • Add Account
  • Airplane Mode
  • APN Settings
  • Application Details
  • Application Development
  • Application Notifications
  • Open by Default
  • Application Write Settings
  • Battery Saver
  • Captioning
  • Cast
  • Data Usage
  • Mobile Hotspot & Tethering
  • App Notification Bubble
  • Search
  • Biometric Enrollment
  • Hardware Keyboard
  • Home
  • Ignore Background Data Restrictions
  • Ignore Battery Optimization
  • Input Method
  • Locale
  • Manage All Applications
  • Manage External Sources
  • Manage Overlay ... and more features being added regularly!
iOS:

Navigate directly to:

  • Wi-Fi
  • General Settings
  • About
  • Accessibility
  • Account Settings
  • Auto Lock
  • Battery
  • Bluetooth
  • Date & Time
  • Face ID & Passcode
  • Cellular
  • Dictionary
  • Display & Brightness
  • FaceTime
  • General
  • HealthKit
  • iCloud
  • Music
  • Keyboard
  • Language & Region
  • Location Services
  • Personal Hotspot
  • Phone
  • Photos & Camera
  • Privacy
  • Profiles & Device Management
  • Software Update
  • Storage & Backup
  • Siri
  • Sounds & Haptics ... and more features being added regularly!

🙏 Acknowledgments

This package was innovatively crafted by Yann Cabral. It was inspired by the fantastic work of Ali Hoseinpoor, aiming to overcome certain limitations.

🐞 Bugs or Feature Requests

Encountered an issue or have a feature in mind? We'd love to hear from you!

  • Report issues or seek features here.
  • Contributions via pull requests are always welcome!

This revised README provides a more structured and polished presentation of the plugin's features and usage.

所属分类

依赖

依赖清单 1 项

  • plugin_platform_interface^2.0.2

源码仓库

使用此插件的项目