Skip to content

Commit 2088296

Browse files
authored
Update main.dart
1 parent 027210b commit 2088296

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

example/lib/main.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ class _MyAppState extends State<MyApp> {
3838
}
3939
};
4040

41-
// --------------------------------------------------------------------
41+
// -------------------------------------------------------------------- <!!! ANDROID ONLY !!!>
42+
// This doesn't work on ios or web. Don't call it.
4243
// You only need to make this call if you want to turn off the screen.
4344
// Add below permission in your AndroidManifest.xml file.
4445
// <uses-permission android:name="android.permission.WAKE_LOCK"/>
@@ -47,7 +48,7 @@ class _MyAppState extends State<MyApp> {
4748
print("could not enable screen off functionality");
4849
return null;
4950
});
50-
// --------------------------------------------------------------------
51+
// -------------------------------------------------------------------- <!!! ANDROID ONLY !!!>
5152

5253
_streamSubscription = ProximitySensor.events.listen((int event) {
5354
setState(() {

0 commit comments

Comments
 (0)