Git Product home page Git Product logo

flutter_ai_writing_assistant's Introduction

Flutter AI Writing Assistant

An AI writing assistant like Grammarly using the Gemini AI API. It gets the text from the user and sends it to the Gemini AI API to:

  • Fix grammar mistakes
  • Display the reason for the correction
  • Specify the language of correction
  • Suggest alternative sentence if needed

Installation

To use this project, you need to have the Flutter SDK installed. You can find the installation instructions.

To use the Gemini AI, you need to have an API key. Get an API Key.

To add your API key to the project, you have to add it to pass it to the flutter run command:

flutter run --dart-define=API_KEY=$YOUR_API_KEY

Replace $YOUR_API_KEY with your API key.

You can set your IDE's run configuration to pass the API key.

Android Studio

  1. Open the project in Android Studio.
  2. Click on the main.dart dropdown at the top of the window.
  3. Click on Edit Configurations....
  4. In the Additional run args field, add `--dart-define=API_KEY
  5. Click on Apply and OK.

Your configuration should look like this:

Android Studio run configuration

VS Code

  1. Open the project in VS Code.
  2. Click on Run and Debug from the left sidebar.
  3. Click on create a launch.json file.
  4. Select Dart & Flutter.
  5. Add `"args": ["--dart-define=API_KEY"] in the first configuration object.
  6. Save the file.

Your file should look like this:

VS Code launch.json

Tests

You can run the tests using the following command:

flutter test --name="Test check method" test/assistant_test.dart --dart-define=API_KEY=YOUR_API_KEY --dart-define=SENTENCE="YOUR_TEXT"

Replace YOUR_API_KEY with your API key and YOUR_TEXT with the text you want to test.

Tests

App Demo

Text-only input

Tutorial

To learn more about this project, check out these links:

Explanation overview

AI Writing assistant app with Flutter and Gemini

flutter_ai_writing_assistant's People

Contributors

lyabs243 avatar

Stargazers

Sujal Mistry avatar Bruno de Moura avatar  avatar Brad Pillow avatar Brian avatar banos avatar Hung Pham avatar GAEL SASSAN avatar Antonio Vecchio avatar Chandra Sekhar Kode avatar DCnative avatar Burak avatar Hiếu avatar Ahsan Raza avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.