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.