搜尋分類、套件與程式碼儲存庫

套件詳情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.

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。