How to keep an application from locking the screen in flutter?
Is there a flag to turn it off an on? Does flutter SDK expose this?
Something like keepA
keepA
I found plugin that does the job. https://pub.dartlang.org/packages/screen
import 'package:screen/screen.dart'; // Prevent screen from going into sleep mode: Screen.keepOn(true);
You also need to set permission for android