open_ios_setting 0.0.2 copy "open_ios_setting: ^0.0.2" to clipboard
open_ios_setting: ^0.0.2 copied to clipboard

PlatformiOS

A Flutter plugin for opening iOS system settings pages. Supports opening the Settings app home page.

example/lib/main.dart

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

void main() {
  runApp(const MyApp());
}

/// 示例应用
class MyApp extends StatelessWidget {
  /// 构造函数
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    final openIosSettingPlugin = OpenIosSetting();

    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: const Text('OpenIosSetting Example')),
        body: Center(
          child: ElevatedButton(
            onPressed: () => openIosSettingPlugin.openSettingHome(),
            child: const Text('打开 iOS 设置首页'),
          ),
        ),
      ),
    );
  }
}
1
likes
145
points
45
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin for opening iOS system settings pages. Supports opening the Settings app home page.

Repository (GitHub)
View/report issues

Topics

#ios #settings #plugin

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on open_ios_setting

Packages that implement open_ios_setting