flutter system setting
a flutter plugin for jumping to system settings.
for android, this plugin currently supports jumping to wifi, bluetooth and app notification setting. other setting paths 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 lead 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 'packages: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 are closed.