An open API service indexing awesome lists of open source software.

https://github.com/rizaadi/flutter_gemini


https://github.com/rizaadi/flutter_gemini

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# Flutter Gemini

Demonstrates Gemini AI in flutter using [BloC](https://pub.dev/packages/flutter_bloc) State Management and [Google AI Dart SDK](https://pub.dev/packages/google_generative_ai)

## Features

|Text Only| Text and Image| Multi-turn conversations (chat)|
|---------|---------------|--------------------------------|
| |||

## Architecture
The architecture is implemented using the BLoC and Repository patterns.
![architecture](https://github.com/rizaadi/flutter_gemini/assets/74534061/df982650-bebd-4b5f-8032-35574e416e58)

## Setup and Installation

1. To use the Gemini API, you'll need an API key. If you don't already have one, create a key in [Google AI Studio](https://makersuite.google.com/app/apikey).
2. Clone the repository from GitHub:
```
git clone https://github.com/rizaadi/flutter_gemini.git
```
3. Get all dependencies:
```
flutter pub get
```
4. Create a `.env` file and fill it with your api
```
GEMINI_KEY='YOUR API KEY'
```
4. Run the app:
```
flutter run
```