File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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 (() {
You can’t perform that action at this time.
0 commit comments