Our new free library, Aumadi Screen Awake, is now live on the FlutterFlow Marketplace. It stops the screen from dimming and locking while a page is open, using three simple custom actions.
What it does
keepScreenOn keeps the screen awake
keepScreenOff restores normal sleep and auto-lock
isScreenKeptOn returns true or false, so you know whether keep-awake is active
Where it helps
Video and audio players, QR and barcode scanners, recipe, reading and presentation screens, navigation, workouts and timers, and kiosk, check-in and display apps.
Why you'll like it
It works on Android, iOS and Web, needs no setup, and is built on the wakelock_plus package. It's also verified by FlutterFlow Studio.
Good to know
Call keepScreenOff when the user leaves the page, otherwise the screen stays awake on other pages too. Battery saver or device policies can still override keep-awake, and on web the browser releases it when the tab is hidden, so call keepScreenOn again when the user comes back.
Marketplace item:
https://marketplace.flutterflow.io/item/2iZ3XnJ7a4OYU0x0DjZw
If you need help with this or any other such customization, feel free to reach out to us at [email protected]