搜索分类、插件与代码仓

插件详情v2.1.0

system_settings

Flutter 插件,用于在 iOS 和 Android 上打开系统和应用设置。

AndroidiOS
近 30 天下载
466
喜欢数
68
Pub 分数
140

安装插件

flutter pub add system_settings

插件介绍

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

system_settings 包是一个 Flutter 插件,可让开发者在 Android 和 iOS 设备上打开系统和应用设置。它提供了一个简单的接口,可直接将用户导航到特定的设置页面,例如蓝牙、Wi-Fi 或应用权限,从而通过减少手动导航来提升用户体验。该插件可在各个平台上无缝运行,并可轻松集成到现有的 Flutter 项目中。当某些操作后需要引导用户完成配置步骤或权限被拒绝时,该插件尤为有用。

适合场景

  • 打开应用权限设置
  • 导航到 Wi-Fi 或蓝牙设置
  • 引导用户启用位置服务
  • 重定向到电池优化设置
  • 改进入门流程
  • 处理权限被拒绝的情况

主要特点

  • 跨平台支持(Android 和 iOS)
  • 用于打开系统设置的简单 API
  • 直接导航到特定设置页面
  • 无需额外的原生代码
  • 通过 pub.dev 实现轻松集成
  • 无需 root 或越狱即可使用

适合对象

  • 需要快速访问系统设置的应用程序开发者
  • 引导和教程流程
  • 权限管理工作流程
  • 移动应用中的用户引导
  • 同时针对 Android 和 iOS 的开发者

使用建议

  • 需要适当的权限才能访问某些设置
  • 对设置UI的控制有限
  • 行为可能在不同操作系统版本之间略有差异
  • 并非所有设备配置都适用
  • 用户必须手动调整设置
  • 在某些平台上可能会提示系统对话框

原始 README

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

system_settings

Build pub package license

Flutter plugin to open system and app settings from an iOS and Android app.

On Android, this plugin supports various system setting pages as well as the app info and app notification settings page.

On iOS, this plugin will always open the app settings page, if any settings have been defined via a SettingsBundle. If not, the settings app will open with the home page. Unfortunately, this is the only way that complies with Apple's guidelines for the App Store.

Getting Started

Add this to your package's pubspec.yaml file:

dependencies:
  system_settings: 2.1.0

Next, import the package into your dart code:

import 'package:system_settings/system_settings.dart';

Example

Example which opens the app settings:

Widget build(BuildContext context) {
    return RaisedButton(
        onPressed: SystemSettings.app,
        child: Text('Open app settings'),
    );
}

Bugs and feature requests

Have a bug or a feature request? Please first search for existing and closed issues. If your problem or idea is not addressed yet, please open a new issue.

Copyright & License

Code copyright 2020–2022 Florian Weinaug. Code released under the MIT license.

所属分类

源码仓库

使用此插件的项目

暂无相关数据。