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
Read moreHow do I stop my screen from going to sleep when I flutter?
// Prevent screen from going into sleep mode: Screen. keepOn(true); You will also need to set permission for an android.11 Ağu 2021
Read more