settingsfrompullrequestwithandroidlocationmenu 0.0.7 settingsfrompullrequestwithandroidlocationmenu: ^0.0.7 copied to clipboard
This version has been forked from https://github.com/Libero793/settings and adds iOS method channel handler for openGPSSettings() method call.
import 'package:flutter/material.dart';
import 'package:settings/settingsfrompullrequestwithandroidlocationmenu.dart';
void main() => runApp(new MyApp());
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => new _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: Text('Settings'),
),
body: Center(
child: Column(children: <Widget>[
SizedBox(
height: 100.0,
),
RaisedButton(onPressed: SettingsFromPullRequestWithAndroidLocationMenu.openGPSSettings, child: new Text("Open GPS settings")),
]),
),
));
}
}