Flutter Open App Setting, bluetooth, wifi, location settings
Flutter Open App Setting, bluetooth, wifi, location settings

Hi Guys, Welcome to Proto Coders Point, In this Flutter Tutorial Article we will learn how to open app settings in flutter.

Flutter App_Settings Package

A Flutter package by which you can easily open Android & iOS devices settings pages such as: Open App Settings, Location Settings, device, Bluetooth Settings, WiFi settings, NFC, Battery optimization settings, Display setting, sound settings by just one button click using flutter app_settings package in your flutter project.

Video Tutorial on App Settings flutter plugin

Getting Started

App_Settings flutter package Installation

In your flutter project, open pubspec.yaml file and under dependencies section you need to add app_settings flutter library

app_settings: ^4.1.1

after adding the library hit pub get button on pubspec.yaml file top right or else run command in IDE terminal ‘flutter pub get’

Import it

Once you have successfully added the required package to open flutter app settings, now you need to import app_settings.dart file.

import 'package:app_settings/app_settings.dart';

Platform Configuration


You can directly use system settings screen like: WIFI Settings, Security, Device Setting, date Setting etc, but in some cases, to access bluetooth setting page or Location settings page, you need to add access permission in your AndroidManifest.xml file

<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.yourname.yourapp">   

	 <uses-permission android:name="android.permission.BLUETOOTH" />  
	 <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />  
	 <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>  



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

Flutter App_ Setting package usage

Below are code to directly open setting page such as eg: Bluetooth Settings

Flutter Open App Setting

ElevatedButton(onPressed: (){
 }, child: Text('Open App Setting'))
flutter open app setting

Flutter Open WiFI Setting

 ElevatedButton(onPressed: (){
 }, child: Text('WIFI SETTING')),
flutter open wifi search page

Flutter Open Location Setting

    ElevatedButton(onPressed: (){
    }, child: Text('Location Settting')),
flutter open location setting

Flutter Open Bluetooth Settings

ElevatedButton(onPressed: (){
}, child: Text('BlueTooth')),
flutter open bluetooth settings

Flutter Open Device Settings

ElevatedButton(onPressed: (){
 }, child: Text('Device Setting')),
flutter open setting page

Flutter Open Notification Settings

ElevatedButton(onPressed: (){
 }, child: Text('Notification Setting')),
flutter open notification settings

Flutter Open Battery Optimization Settings

ElevatedButton(onPressed: (){
}, child: Text('Battery Optimization Setting'))
flutter open battery setting

Flutter Open Internal Storage Settings

ElevatedButton(onPressed: (){
 }, child: Text('Open Storage Setting'))
Flutter open internal storage

Flutter App Settings - How to Open App Setting in flutter