How to check if the home button or the power button are pressed in an android/ios device in Flutter App.
There is a package - https://pub.dev/packages/hardware_buttons
Now it is not compatible with Flutter 2.10.
Error - "The plugin `hardware_buttons` uses a deprecated version of the Android embedding."
I tried using it, but it is showing that it is deprecated, because it was using Android V1 Embedding.