open_settings_plus
最完整的 Flutter 插件套件,用於開啟各種設定螢幕,涵蓋較新的 iOS 與 Android 版本。
適用於 Android 和較新版本 iOS 開啟各種設定畫面的最完整 Flutter 插件套件。
{"sdk":"flutter"}^2.0.2{"sdk":"flutter"}^5.0.0以下為英文專案原文快照,最新內容請造訪 GitHub。
open_settings_plusA 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.
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.
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.
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.
Navigate directly to:
Navigate directly to:
This package was innovatively crafted by Yann Cabral. It was inspired by the fantastic work of Ali Hoseinpoor, aiming to overcome certain limitations.
Encountered an issue or have a feature in mind? We'd love to hear from you!
This revised README provides a more structured and polished presentation of the plugin's features and usage.