How do I keep the screen on in flutter?

import ‘package:wakelock/wakelock. dart’; // To keep the screen on: Wakelock. enable(); // or Wakelock. toggle(on: true); // To let the screen turn off again: Wakelock.

Sizin İçin Seçtik  What does foreground app mean?

Leave a Reply

Your email address will not be published. Required fields are marked *