I want to make a flutter app that, when a button is pressed, it runs a python or a js script that I made and is saved in a .js or a .py file. Essentially, I want to run a .js or a .py file when a button in Flutter is pressed. Is that possible? And if yes, how can it be done? I am making a desktop application that has to work offline.
Yes you can using API, you make API in django or flask backend which run the python script you want after you make a request to your API via clicking the flutter button
Is it possible to run a js or python script from a .js or .py file when a button in Flutter is pressed? (Not Flutter Web)