File tree 5 files changed +14
-4
lines changed
5 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 3
3
4
4
.packages
5
5
.pub /
6
+ android /.idea /
6
7
7
8
build /
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
+
1
5
## 1.2.0
2
6
- revert : turn off screen on Android while listening for proximity events
3
-
7
+ -
4
8
## 1.1.0
5
9
- turn off screen on Android while listening for proximity events
6
10
Original file line number Diff line number Diff line change @@ -37,10 +37,15 @@ class _MyAppState extends State<MyApp> {
37
37
FlutterError .dumpErrorToConsole (details);
38
38
}
39
39
};
40
+
41
+ // --------------------------------------------------------------------
42
+ // You only need to make this call if you want to turn off the screen.
40
43
await ProximitySensor .setProximityScreenOff (true ).onError ((error, stackTrace) {
41
44
print ("could not enable screen off functionality" );
42
45
return null ;
43
46
});
47
+ // --------------------------------------------------------------------
48
+
44
49
_streamSubscription = ProximitySensor .events.listen ((int event) {
45
50
setState (() {
46
51
_isNear = (event > 0 ) ? true : false ;
Original file line number Diff line number Diff line change @@ -45,10 +45,10 @@ packages:
45
45
dependency: "direct main"
46
46
description:
47
47
name: cupertino_icons
48
- sha256: caac504f942f41dfadcf45229ce8c47065b93919a12739f20d6173a883c5ec73
48
+ sha256: d57953e10f9f8327ce64a508a355f0b1ec902193f66288e8cb5070e7c47eeb2d
49
49
url: "https://pub.dev"
50
50
source: hosted
51
- version: "1.0.2 "
51
+ version: "1.0.6 "
52
52
fake_async:
53
53
dependency: transitive
54
54
description:
Original file line number Diff line number Diff line change 1
1
name : proximity_sensor
2
2
description : simple and easy to use flutter plugin package for proximity sensor (only)
3
- version : 1.2 .0
3
+ version : 1.3 .0
4
4
homepage : https://github.com/jeremyko/flutter-proximity-sensor-plugin
5
5
6
6
environment :
You can’t perform that action at this time.
0 commit comments