How can I prevent users from changing device time to access outdated data in my Flutter app?

I'm building a Flutter app for data management, and I want to make sure that users always operate with the correct current time. A problem I'm facing is that users can manually change their device's date and time, which allows them to view or enter backdated data. This is a major issue for my use case because all entries must be current and up-to-date.
I want to prevent any kind of tampering with the device clock and ensure that the app always uses the actual, real-world time.
Is there a reliable way to do this in Flutter? Specifically, I would like to:
Detect if the device time has been changed or is incorrect.
Force the app to use the correct time (e.g., by checking against a trusted online time source).
Prevent access to data or functionality if the time is not accurate.
I’ve seen solutions like using NTP (Network Time Protocol), but I’m not sure how to implement that correctly in Flutter or what the best approach is.
Any suggestions or best practices are highly appreciated.
Answer
Use the information from this link. https://medium.com/@MYahia2011/how-to-restrict-access-to-your-flutter-app-if-device-time-is-manipulated-8d62ec96d4e1