Python and Dart Integration in Flutter Mobile Application

34,719

Solution 1

visit https://pub.dev/packages/starflut

A new flutter plugin project, which supports flutter to interact with other scripting languages such as python, java, ruby, golang, rust, etc. It is easy to use, supports android and ios platform.

Solution 2

You can create an api using Python then serve it your mobile app (FLUTTER) using http requests. I

Solution 3

Yes there are multiple ways to do this I will share two of them which I personally used in the past

  1. Using an API Like 'Text Analysis API' It is freemium and verified, also support HTTP request through flutter here is the link https://rapidapi.com/aylien/api/text-analysis

  2. Using a Starflut package here is the link of the medium article hope it will help you https://medium.com/@ihassanjavaid/how-to-run-python-scripts-on-flutter-d6a4aedb6227

Share:
34,719
Hamza Tanveer
Author by

Hamza Tanveer

Updated on July 09, 2022

Comments

  • Hamza Tanveer
    Hamza Tanveer almost 2 years

    Can i do these two things:

    1. Is there any library in dart for Sentiment Analysis?
    2. Can I use Python (for Sentiment Analysis) in dart?

    My main motive for these questions is that I'm working on an application in a flutter and I use sentiment analysis and I have no idea that how I do that.

    Can anyone please help me to solve this Problem.?
    Or is there any way that I can do text sentiment analysis in the flutter app?