I am trying to create a simple app that shows a quote on my phone device, after I lock the device. So, I am trying to obtain a behavior that after I lock my screen, I have a black screen, and there I want to show that quote.
The behavior is like on Samsung S23 ultra, and maybe other phones. But on S23 I have an option, in android settings, that is named AOD (Always on display) and there I can set to appear the date and time. And after I lock my screen, I have a black screen with the current date and time. And this is the behavior that I want to obtain in this simple app, but I can not get it what why I can't. I have the code here. I develop this code in visual code (if is matters) https://github.com/alexandruMMM/my_motivation.
This is Good Idea but Sadly its not possible using Flutter or Native Android because
AOD (Always On Display) is a system-level feature provided by the phone's firmware. It's tightly integrated with the device's hardware and software to conserve battery (especially on OLED screens).
If you want what can you do (not same but)
Creating a fullscreen activity with a black background.
Displaying the quote in white text (to conserve power on OLED screens).
Use wakelock_plus for keeping app awake.