Is it possible to intercept events generated by hardware buttons completely in Flutter? For example if the app is active and volume up/down button is pressed, is it possible to intercept that event in the app, handle it in the app specific way and most importantly prevent it from being acted upon further by the system so that the default behaviour that actually turns the volume up/down and displays the system dialog/popup showing the volume going up/down would not happen?
I tried to use the hardware_buttons flutter library/plugin. It allows me to react when buttons are pressed, but the events still get propagated on so the system also handles them in the regular way.
Thanks in advance for your suggestions!