1

I'm trying to create a Flutter note-taking app for myself which will enable me to record and organise my voice notes.

I want the functionality to be such:

  • Screen is Off; When I long press the volume down button (or another hardware button) >> App launches and audio recording starts;
  • When I release the button, Audio recording stops and audio is saved; then I am presented with a screen to select tags regarding the previous recording.

I have researched various packages and implementations (such as the HardwareKeyboard class) that can be used but I am unable to find clarity with regards to how this specific functionality can be achieved.

I don't need a very detailed response, but I'd love it if someone could point me in the right direction/resources with regards to the following queries specifically:

  1. How to launch app and startFunction( ) when volume down is long pressed
  2. How to detect when the button is released and stopFunction( ).then(nextFunction( ))

0 Answers0