/
main.dart
120 lines (118 loc) · 4.07 KB
/
main.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
import 'package:flutter/material.dart';
import 'package:system_settings/system_settings.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('Plugin example app'),
),
body: Center(
child: ListView(
padding: EdgeInsets.all(20.0),
children: <Widget>[
ElevatedButton(
child: Text('App info'),
onPressed: () => SystemSettings.app(),
),
ElevatedButton(
child: Text('App notifications'),
onPressed: () => SystemSettings.appNotifications(),
),
ElevatedButton(
child: Text('Settings'),
onPressed: () => SystemSettings.system(),
),
ElevatedButton(
child: Text('Location'),
onPressed: () => SystemSettings.location(),
),
ElevatedButton(
child: Text('Wi-Fi'),
onPressed: () => SystemSettings.wifi(),
),
ElevatedButton(
child: Text('Bluetooth'),
onPressed: () => SystemSettings.bluetooth(),
),
ElevatedButton(
child: Text('NFC'),
onPressed: () => SystemSettings.nfc(),
),
ElevatedButton(
child: Text('Power Options'),
onPressed: () => SystemSettings.powerOptions(),
),
ElevatedButton(
child: Text('Security'),
onPressed: () => SystemSettings.security(),
),
ElevatedButton(
child: Text('Display'),
onPressed: () => SystemSettings.display(),
),
ElevatedButton(
child: Text('Date & time'),
onPressed: () => SystemSettings.date(),
),
ElevatedButton(
child: Text('Sound'),
onPressed: () => SystemSettings.sound(),
),
ElevatedButton(
child: Text('Apps'),
onPressed: () => SystemSettings.apps(),
),
ElevatedButton(
child: Text('Network & internet'),
onPressed: () => SystemSettings.wireless(),
),
ElevatedButton(
child: Text('Device info'),
onPressed: () => SystemSettings.deviceInfo(),
),
ElevatedButton(
child: Text('Data usage'),
onPressed: () => SystemSettings.dataUsage(),
),
ElevatedButton(
child: Text('Data roaming'),
onPressed: () => SystemSettings.dataRoaming(),
),
ElevatedButton(
child: Text('Locale'),
onPressed: () => SystemSettings.locale(),
),
ElevatedButton(
child: Text('Default apps'),
onPressed: () => SystemSettings.defaultApps(),
),
ElevatedButton(
child: Text('Airplane/offline mode'),
onPressed: () => SystemSettings.airplaneMode(),
),
ElevatedButton(
child: Text('Privacy'),
onPressed: () => SystemSettings.privacy(),
),
ElevatedButton(
child: Text('Accessibility'),
onPressed: () => SystemSettings.accessibility(),
),
ElevatedButton(
child: Text('Internal storage'),
onPressed: () => SystemSettings.internalStorage(),
),
ElevatedButton(
child: Text('Notification policy / DND'),
onPressed: () => SystemSettings.notificationPolicy(),
),
],
),
),
),
);
}
}