File tree Expand file tree Collapse file tree 5 files changed +14
-4
lines changed
Expand file tree Collapse file tree 5 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 33
44.packages
55.pub /
6+ android /.idea /
67
78build /
Original file line number Diff line number Diff line change 1+ ## 1.3.0
2+ - documentation
3+ - enable the screen off behavior on Android (optional)
4+
15## 1.2.0
26- revert : turn off screen on Android while listening for proximity events
3-
7+ -
48## 1.1.0
59- turn off screen on Android while listening for proximity events
610
Original file line number Diff line number Diff line change @@ -37,10 +37,15 @@ class _MyAppState extends State<MyApp> {
3737 FlutterError .dumpErrorToConsole (details);
3838 }
3939 };
40+
41+ // --------------------------------------------------------------------
42+ // You only need to make this call if you want to turn off the screen.
4043 await ProximitySensor .setProximityScreenOff (true ).onError ((error, stackTrace) {
4144 print ("could not enable screen off functionality" );
4245 return null ;
4346 });
47+ // --------------------------------------------------------------------
48+
4449 _streamSubscription = ProximitySensor .events.listen ((int event) {
4550 setState (() {
4651 _isNear = (event > 0 ) ? true : false ;
Original file line number Diff line number Diff line change @@ -45,10 +45,10 @@ packages:
4545 dependency: "direct main"
4646 description:
4747 name: cupertino_icons
48- sha256: caac504f942f41dfadcf45229ce8c47065b93919a12739f20d6173a883c5ec73
48+ sha256: d57953e10f9f8327ce64a508a355f0b1ec902193f66288e8cb5070e7c47eeb2d
4949 url: "https://pub.dev"
5050 source: hosted
51- version: "1.0.2 "
51+ version: "1.0.6 "
5252 fake_async:
5353 dependency: transitive
5454 description:
Original file line number Diff line number Diff line change 11name : proximity_sensor
22description : simple and easy to use flutter plugin package for proximity sensor (only)
3- version : 1.2 .0
3+ version : 1.3 .0
44homepage : https://github.com/jeremyko/flutter-proximity-sensor-plugin
55
66environment :
You can’t perform that action at this time.
0 commit comments