I’m presently making an app with Flutter and Firebase, coding with 90% Dart, and a little bit of HTML & Ruby. I wish to add a time restriction to it that, after a sure time restrict has handed, the person can not use the app with out paying x quantity. Then, the subsequent day (so, after 00:00) the person can return to utilizing it with out paying till they attain the time restrict. If the customers need to spend additional time on the app they must pay to make use of it for a bit longer on that very same day, this isn’t meant to be a month-to-month subscription but.
As soon as the timer runs out I don’t need the customers to entry any web page of my app and as an alternative be redirected to a different web page the place they’re instructed that their time restrict completed and might make their purchases. I do know in regards to the Timer class that is a part of Dart’s async library however I do not know tips on how to combine it in each web page so the timer does not restart in each web page, or that each web page has a timer of its personal. I do not know both tips on how to permit customers again in after 00:00, is there a perform that enables me to particularly examine what time it’s in a person’s cellphone?