Flutter plugin for jumping to system settings

Overview

system_setting

pub package

A Flutter plugin for jumping to system settings.

For Android, this plugin currently support jumping to WiFi, Bluetooth and App Notification setting. Other setting path will be added soon.

For iOS, this plugin only opens the app setting screen Settings application, as using url schemes to open inner setting path is a violation of Apple's regulations. Using url scheme to open settings can also leads to possible App Store rejection.

If you can find any workaround or enhancement, pull requests are always welcome.

Usage

To use this plugin, add system_setting as a dependency in your pubspec.yaml file.

For iOS, SettingTarget will not have any effect. It will always go to app setting.

Example

import 'package:flutter/material.dart';
import 'package:system_setting/system_setting.dart';

void main() => runApp(MaterialApp(
      home: Scaffold(
        body: Center(
          child: RaisedButton(
            onPressed: _jumpToSetting,
            child: Text('Goto setting'),
          ),
        ),
      ),
    ));

_jumpToSetting() {
  SystemSetting.goto(SettingTarget.WIFI);
}
Comments
  • java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed

    java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed

    java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed

    D:\xx\build\system_setting\intermediates\res\merged\release\values\values.xml:236: error: resource android:attr/fontVariationSettings not found. D:\xx\build\system_setting\intermediates\res\merged\release\values\values.xml:237: error: resource android:attr/ttcIndex not found.

    opened by lovachen 2
  • Plugin in ios problem

    Plugin in ios problem

    I am experiencing this problem when using the plugin,I did not find a solution. my xcode 10.2.1, pod 1.5.3
    image What is the reason for this? How can I solve this problem?

    opened by zzzloving 2
  • Please do a release

    Please do a release

    This commit is much needed when targeting recent Android OS https://github.com/Edward608/system_setting/commit/bd2a5dc8aac0aa1427bf396e5d1815f52d0e4769

    thank you

    opened by mistic100 1
  • Objective-C support

    Objective-C support

    I cannot run this plugin with Objective-C for iOS. Can you please mention that in the description as well?

    And will there be support for Objective-C as well?

    opened by pdefuns 1
  • Problem in Android

    Problem in Android

    It won't compile:

    The Android Gradle plugin supports only Kotlin Gradle plugin version 1.3.0 and higher. The following dependencies do not satisfy the required version: project ':system_setting' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.71

    opened by dmvvilela 1
  • Migrate to nullsafety

    Migrate to nullsafety

    Migrated the project to nullsafety. No changes is done to the plugin, except the result of dart format . --fix. The example project is updated to the point that I was able to run it on Android without errors and warnings. Fixes #14.

    opened by tverra 0
  • Could you update the Kotlin Gradle plugin version to 1.3.10 and higher

    Could you update the Kotlin Gradle plugin version to 1.3.10 and higher

    Could you update the Kotlin Gradle plugin version:

    current version is : package name: org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.71

    request is : version number > 1.3.10 and higher

    opened by helloWorldGeorge 0
  • Specify Swift version

    Specify Swift version

    pod install fails:

    Installing system_setting 0.1.1
    [!] Unable to determine Swift version for the following pods:
    
    - `system_setting` does not specify a Swift version and none of the targets (`Runner`) integrating it have the `SWIFT_VERSION` attribute set. Please contact the author or set the `SWIFT_VERSION` attribute in at least one of the targets that integrate this pod.
    

    I use pod version 1.6.0.

    opened by tyfkda 0
  • Plugin throwing build error with latest iOS 14 / XCode update

    Plugin throwing build error with latest iOS 14 / XCode update

    Hi,

    Getting a build error when trying to compile my flutter application w/latest version of Xcode release:

    Xcode's output:
    ↳
    /Users/user/Development/flutter/.pub-cache/hosted/pub.dartlang.org/system_setting-0.1.3/ios/Classes/SwiftSystemSettingPlugin.swift:17:65: error: cannot convert value of type '[UIApplication.OpenExternalURLOptionsKey : Any]' (aka 'Dictionary<NSString, Any>') to expected argument type '[String : Any]'
                            UIApplication.shared.open(url, options: convertToUIApplicationOpenExternalURLOptionsKeyDictionary([:]), completionHandler: nil)
                                                                    ^
    /Users/user/Development/flutter/.pub-cache/hosted/pub.dartlang.org/system_setting-0.1.3/ios/Classes/SwiftSystemSettingPlugin.swift:17:65: note: arguments to generic parameter 'Key' ('UIApplication.OpenExternalURLOptionsKey' (aka 'NSString') and 'String') are expected to be equal
                            UIApplication.shared.open(url, options: convertToUIApplicationOpenExternalURLOptionsKeyDictionary([:]), completionHandler: nil)
                                                                    ^
    /Users/user/Development/flutter/.pub-cache/hosted/pub.dartlang.org/system_setting-0.1.3/ios/Classes/SwiftSystemSettingPlugin.swift:30:108: error: incorrect argument label in call (have 'rawValue:', expected 'string:')
            return Dictionary(uniqueKeysWithValues: input.map { key, value in (UIApplication.OpenExternalURLOptionsKey(rawValue: key), value)})
                                                                                                                      ^~~~~~~~~
                                                                                                                       string
    note: Using new build system
    note: Building targets in parallel
    note: Planning build
    note: Constructing build description
    

    Any solution to this? Thank you!

    opened by ouija 0
  • file not found

    file not found

    Error during compile:

    /Users/user/.pub-cache/hosted/pub.dartlang.org/system_setting-0.1.3/ios/Classes/SystemSettingPlugin.m:2:9: fatal error: 'system_setting/system_setting-Swift.h' file not found
    #import <system_setting/system_setting-Swift.h>
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    1 error generated.
    note: Using new build system
    note: Planning build
    note: Constructing build description
    warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 4.3, but the range of supported deployment target versions is 8.0 to 13.2.99. (in target 'FMDB' from project 'Pods')
    

    Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel master, v1.15.4-pre.82, on Mac OS X 10.15.3 19D62e, locale ru-RU)

    [✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2) [✓] Xcode - develop for iOS and macOS (Xcode 11.2.1) [✓] Chrome - develop for the web [✓] Android Studio (version 3.5) [✓] VS Code (version 1.42.1) [✓] Connected device (4 available)

    opened by goldenplan 0
  • 'variant.getPackageLibrary()' is obsolete and has been replaced with 'variant.getPackageLibraryProvider()'

    'variant.getPackageLibrary()' is obsolete and has been replaced with 'variant.getPackageLibraryProvider()'

    it is risky to use this plugin because of this deprecation until end of 2019 it will crash i guess. do you consider to fix it ?

    > Configure project :system_setting
    WARNING: API 'variant.getPackageLibrary()' is obsolete and has been replaced with 'variant.getPackageLibraryProvider()'.
    It will be removed at the end of 2019.
    For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
    
    opened by Xgamefactory 0
  • Swift 4.2

    Swift 4.2

    Hi, I'd like to use your plugin with my project, which has setup with swift 4.2 (its dependency for others plugins). But unfortunately xcode compiler returned this error message

    Thanks for reply (sorry for creepy english)

    Xcode's output: ↳ === BUILD TARGET flutter_facebook_login OF PROJECT Pods WITH CONFIGURATION Debug === /Users/ales/devel/flutter-dev/.pub-cache/hosted/pub.dartlang.org/system_setting-0.1.3/ios/Classes/SwiftSystemSettingPlugin.swift:14:38: error: 'UIApplicationOpenSettingsURLString' has been renamed to 'UIApplication.openSettingsURLString' if let url = URL(string: UIApplicationOpenSettingsURLString) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ UIApplication.openSettingsURLString UIKit.UIApplicationOpenSettingsURLString:3:12: note: 'UIApplicationOpenSettingsURLString' was obsoleted in Swift 4.2 public let UIApplicationOpenSettingsURLString: String

    opened by aleslanik2 2
Owner
Edward Wong
Edward Wong
This is a Flutter URL preview plugin for Flutter that previews the content of a URL

flutter_link_preview This is a URL preview plugin that previews the content of a URL Language: English | 中文简体 Special feature Use multi-processing to

yung 67 Nov 2, 2022
Lazy Loading Flutter Plugin

flutter_placeholder_textlines A simple plugin to generate placeholder lines that emulates text in a UI, useful for displaying placeholder content whil

Victor HG 21 Apr 12, 2022
A Flutter plugin to create views using concentric transition effect.

Concentric Transition A Flutter plugin to create views using Concentric Transition Clipper. Useful for onboarding, page transitions, custom clippers,

Vladyslav Korniienko 202 Jan 7, 2023
🔔 A flutter package to create cool and beautiful text animations. [Flutter Favorite Package]

Animated Text Kit A flutter package which contains a collection of some cool and awesome text animations. Recommended package for text animations in C

Ayush Agarwal 1.4k Jan 6, 2023
This repository demonstrates use of various widgets in flutter and tricks to create beautiful UI elements in flutter for Android and IOS

AwesomeFlutterUI The purpose of this repository is to demonstrate the use of different widgets and tricks in flutter and how to use them in your proje

Subir Chakraborty 132 Nov 13, 2022
Flutter liquid swipe - Liquid Swipe Animation Built With Flutter

Flutter Liquid Swipe liquid Swipe animation is amazing and its Created for iOS P

Jahongir Anvarov 6 Dec 1, 2022
A candy sorter game made with Flutter for the march flutter challenge.

A candy sorter game made with Flutter for the march flutter challenge.

Debjeet Das 1 Apr 9, 2022
✨ A collection of loading indicators animated with flutter. Heavily Inspired by http://tobiasahlin.com/spinkit.

✨ Flutter Spinkit A collection of loading indicators animated with flutter. Heavily inspired by @tobiasahlin's SpinKit. ?? Installing dependencies:

Jeremiah Ogbomo 2.7k Dec 30, 2022
A Flutter library for gradually painting SVG path objects on canvas (drawing line animation).

drawing_animation From static SVG assets See more examples in the showcasing app. Dynamically created from Path objects which are animated over time m

null 442 Dec 27, 2022
Flutter package for creating awesome animations.

?? Simple Animations Simple Animations is a powerful package to create beautiful custom animations in no time. ?? fully tested ?? well documented ?? e

Felix Blaschke 879 Dec 31, 2022
Fun canvas animations in Flutter based on time and math functions.

funvas Flutter package that allows creating canvas animations based on time and math (mostly trigonometric) functions. The name "funvas" is based on F

null 472 Jan 9, 2023
A flutter package that adds support for vector data based animations.

animated_vector Description and inspiration A package that adds support for vector data based animations. The data format is heavily inspired from the

Potato Open Sauce Project 6 Apr 26, 2022
Flutter UI Challenges

Introduction ?? Zoo is a small, simple and beautiful app that lists 3d model of animals. Before we start, you can take a look at the app: Usage ?? To

Sanjeev Madhav 58 Dec 22, 2022
A Flutter app with flip animation to view profiles of friends. 🌟

Flip View Made with ?? in India This flutter app is based on the design made Dmytro Prudnikov for Yalantis on Dribble.He describes the design as: Just

Shubham Soni 68 Sep 23, 2022
Simple reactive animations in your Flutter apps.

just.motion Flutter package to create organic motion transitions. Why? The Motion Value stateless hot reload status notifier Ease Motion Spring Motion

Roi Peker 49 Nov 14, 2022
Timer UI animation challenge from 'Flutter Animations Masterclass'

stopwatch_flutter An IOS stopwatch challenge from Flutter Animations Masterclass - Full Course What I learned; Use timer Use ticker Create custom shap

Ali Riza Reisoglu 11 Jan 4, 2023
💙 Google Classroom Clone using Flutter, GCP

Introduction ?? Classroom is a Google Classroom clone built using ?? Flutter. Before we start, you can take a look at the app: Screenshots ?? Key Feat

Sanjeev Madhav 20 Dec 14, 2022
Animated Menu in Flutter using radial.

Animated_radial_Menu_in_Flutter Animated Menu in Flutter using radial. Getting Started This project is a starting point for a Flutter application. A f

Habib ullah 4 Jul 18, 2022
Cool 3D Drawer Animated With flutter part 2 🔥 🔥

Cool 3D Drawer Animated With flutter part 2 ?? ??

Hmida 12 Nov 22, 2022