Search code examples
pythonandroidandroid-studioflutteryoutube-dl

Is there a way I can run a python Script when a button programmed in flutter is pressed?


Essentially , what I want to do is , press a button that I program in Flutter and when that button is pressed , a python script should start running on my Android device .

I want to use youtube-dl (used to download Youtube videos) library in python but I wanna know if there is a way to run the library in flutter .

Any Help is appreciated . Thanks in advance .


Solution

  • I know it's quite old now but may be someone else can get help out of it. There is library called starflut and it can incorporate python code inside your flutter app. Take a look here

    https://pub.dev/packages/starflut