flutter_open_app_settings
A Flutter Plugin for opening phone settings from Android and iOS apps. It is a fully customizable plugin that allows you to execute functions when returning from the app settings pages.
Installation
Add following dependency in pubspec.yaml file:
flutter_open_app_settings:^0.1.0
Install by running:
flutter pub get
Usage
Usage implementation using a ElevatedButton 'onPressed' event.
import 'package:flutter_open_app_settings/flutter_open_app_settings.dart';
  Widget build(BuildContext context) {
    return Row(
      children: <Widget>[
        ElevatedButton(onPressed: () {
          FlutterOpenAppSettings.openAppsSettings(settingsCode: SettingsCode.APP_SETTINGS,
            onCompletion: _function);},
            child: Text("OPEN APP SETTINGS")),
      ],
    );
  }
openAppsSettings function takes 2 arguments. The first one is required and accepts the Setting code. The second is optional and accepts a function. The function will be executed after returning from the settings page.
 Function _function = (){
      print("do stuff here After returning back to setting page!");
    };
iOS only supports single settings pages instead of custom setting pages.
SettingsCode
 enum SettingsCode{
    APP_SETTINGS,
    BLUETOOTH,
    WIFI,
    ACCESSIBILITY,
    ADD_ACCOUNT,
    AIRPLANE_MODE,
    APN,
    ALL_APPS_SETTINGS,
    BATTERY_SAVER,
    KEYBOARD,
    DATA_USAGE,
    DATE,
    DEVICE_INFO,
    DISPLAY,
    HOME,
    INTERNAL_STORAGE,
    FINGERPRINT_ENROLL,
    LOCALE,
    LOCATION,
    PRIVACY,
    BATTERY_OPTIMIZATION,
    NFC,
    SOUND,
    NOTIFICATION,
}
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.