github spencerccf/app_settings v1.0.0
Version 1

latest releases: 3.0.0, 2.0.2
6 years ago

app_settings

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

Getting Started

Include 'app_settings' from Dart Pub.

dependencies:
  flutter:
    sdk: flutter
  app_settings: 1.0.1

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

import 'package:app_settings/app_settings.dart';

Platform Specifics

The following setting options available on both iOS and Android: openWIFISettings, openLocationSettings, openSecuritySettings

iOS

All three options open the current 'app' settings section if there are settings defined. If no current settings are defined for the app the iPhone Settings Screen will be displayed.

Android

Each option will open and display the exact corresponding screen: WIFI, Location, or Security

Example

Example implementation using a raised button 'onPressed' event.

Widget build(BuildContext context) {
    return Row(
        children: <Widget>[
            RaisedButton(
                onPressed: AppSettings.openLocationSettings(),
                child: Text('Open Location Settings'),
            ),
        ],
    );
}

Don't miss a new app_settings release

NewReleases is sending notifications on new releases.