https://github.com/rizaadi/flutter_gemini
https://github.com/rizaadi/flutter_gemini
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rizaadi/flutter_gemini
- Owner: rizaadi
- Created: 2024-02-10T08:37:39.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-29T15:12:15.000Z (about 1 year ago)
- Last Synced: 2024-03-01T09:52:27.202Z (about 1 year ago)
- Language: Dart
- Size: 103 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.
## 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
```