How to detect if the app was minimized IOS

Solution 1:

This is not a trivial answer. I know a hack people use that goes around the fact that there's no publicly available API you can use. Not sure if Flutter supports it but you can add the functionality manually.

Basically, you need to check what's the brightness. If the app goes into the background (e.g. applicationDidEnterBackground) then also check if the brightness == 0. If it is then you know it was a screen lock.