パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v9.0.1

app_settings

アプリからiOSおよびAndroidの電話設定を開くためのFlutterプラグイン。

AndroidiOSmacOS
30日間ダウンロード
85.5万
いいね数
1250
Pub ポイント
160

パッケージをインストール

flutter pub add app_settings

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

app_settings パッケージは、Android、iOS、macOS でネイティブなデバイス設定ページを開くことを可能にする Flutter プラグインです。Bluetooth、Wi-Fi、プライバシー権限などのシステム設定にアプリ内から直接ナビゲートできる簡単なインターフェースを提供します。これにより、デバイスの設定を調整する際の障害を減らし、ユーザー体験を向上させます。プラグインは、対応するプラットフォーム間での互換性と信頼性を確保するために、プラットフォーム固有の API を活用しています。

用途

  • Bluetooth 設定を開く
  • Wi-Fi設定に移動する
  • プライバシー権限にリダイレクトしています
  • ユーザーを場所サービスに誘導する
  • バッテリー最適化設定にアクセスする

主な機能

  • クロスプラットフォーム対応(Android、iOS、macOS)
  • システム設定を開くためのシンプルな API
  • デバイス設定とのネイティブ統合
  • 追加の権限は必要ありません
  • 軽量で統合が簡単

適している対象

  • デバイス構成アクセスが必要なアプリ
  • ユーザーのオンボーディングフロー
  • 権限リクエストのガイドライン
  • トラブルシューティングツール
  • モバイルアプリにおける設定のナビゲーション

注意事項

  • ユーザーの操作が必要です。設定を開くには
  • 事前に定義されたシステム設定に限定される
  • 設定の変更を処理しない
  • プラットフォーム固有の動作は異なる場合があります
  • 設定が利用できない場合、フィードバックなし

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

app_settings

pub package

A Flutter plugin for opening iOS and Android phone settings from an app.

Features

  • Supports Swift Package Manager (SPM) for iOS integration.
  • Opens various settings pages (e.g., location, Wi-Fi, etc.) for both Android and iOS.

Installation

First, add app_settings as a dependency in your pubspec.yaml file.

flutter pub add app_settings

Next, import 'app_settings.dart' into your Dart code.

import 'package:app_settings/app_settings.dart';
iOS

TIP: If using Objective-C for iOS in your project, you will need to add use_frameworks! to your Runner project podfile in order to use this Swift plugin:

target 'Runner' do
  use_frameworks!

If you prefer using Swift Package Manager (SPM), make sure to enable swift support in your project. See also Flutter SPM integration.

  flutter config --enable-swift-package-manager 

Usage

Open the settings of the application using AppSettings.openAppSettings(). By default, AppSettingsType.settings is used as the type, which opens the general application settings. If the given type is not supported on the current platform, the general settings are opened instead.

Android If asAnotherTask is set to true, the settings page is opened in a different Activity.

Widget build(BuildContext context) {
  return ElevatedButton(
    onPressed: () => AppSettings.openAppSettings(type: AppSettingsType.location),
    child: const Text('Open Location Settings'),
  );
}
Android Q Settings Panels

To open a Settings Panel on Android Q and higher, call AppSettings.openAppSettingsPanel() with a given type.

Widget build(BuildContext context) {
  return ElevatedButton(
    onPressed: () => AppSettings.openAppSettingsPanel(AppSettingsPanelType.volume),
    child: const Text('Open Volume Settings Panel'),
  );
}

Settings panels are not supported on other platforms.

カテゴリー

依存関係

依存関係一覧 1 件

  • plugin_platform_interface^2.0.2

ソースリポジトリ

このパッケージを使用しているプロジェクト

ランキング