I am developing a digital well-being app in Flutter and I aim to incorporate a timer for individual applications. Once the specified time limit is reached for a particular app, the user will be unable to continue its usage. I have attached examples of my phones native digital well being control.
Native digital well being controls
Change the icon color to disabled once it reaches the timer
Show an alert dialog like this
How can I implement this in Flutter, what are the ways in which I can do this?