How do you keep your screen awake in flutter?

If you want to keep device screen awake then, you need to simply call a function called ” Wakelock. enable” and to disable just call “Wakelock. disable“ . The below code on button press will keep android wakelock and ios wakelock, Means screen display will be awake until user disable it.25 Eki 2020

Sizin İçin Seçtik  Can you earn from Thetan Arena?

Leave a Reply

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