참고 문서
공식 문서 링크
패키지 설치
dependencies: flutter: sdk: flutter app_settings: 4.1.8
import 'package:app_settings/app_settings.dart';
열기 가능한 설정 창 종류
openAppSettings
openWIFISettings
openLocationSettings
openSecuritySettings
openBluetoothSettings
openDataRoamingSettings
openDateSettings
openDisplaySettings
openNotificationSettings
openSoundSettings
openInternalStorageSettings
openBatteryOptimizationSettings
openDevelopmentSettings
안드로이드 설정 (블루투스)
android/app/src/main/AndroidManifest.xml<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"/> <application
참고
openAppSettings 은 현재 사용중인 앱 설정 창을 열어줌
사용 예시
Widget build(BuildContext context) { return Row( children: <Widget>[ RaisedButton( onPressed: AppSettings.openLocationSettings, child: Text('Open Location Settings'), ), ], ); }