Custom SharePoint List Form with Power Automate Flow
On the canvas app, you can create a new flow that gets triggered from the app. You can define the variables needed to trigger the flow and rest of your actions.
Once that is done, on the OnSelect property of your button, you can type your flow name.run and then provide parameters and run the flow from the button.
Something like below:
Hope this helps.
Cheers!