Ad

Can I Make Flutter Code Can Run Python Program?

- 1 answer

When a python program named 'main.py' runs, it will write some data to number.txt file. And I'll import that number.txt file in flutter and use data in it.

What I want is make my flutter code can run python program. I thought about run the python program through cmd, but the function print in flutter doesn't look like proper. So how can I do that?

Thank you for reading, and I'll wait for your advice!

Ad

Answer

Try checking this plugin. May be it should work for you.

https://pub.dev/packages/starflut

Ad
source: stackoverflow.com
Ad