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

https://github.com/extrawest/flutter-vertex-ai-showcase

Simple flutter Vertex AI app
https://github.com/extrawest/flutter-vertex-ai-showcase

ai dart firebase flutter vertex-ai

Last synced: 2 months ago
JSON representation

Simple flutter Vertex AI app

Awesome Lists containing this project

README

          

# Vertex AI flutter app
[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)]()
[![Maintaner](https://img.shields.io/static/v1?label=Oleksandr%20Samoilenko&message=Maintainer&color=red)](mailto:oleksandr.samoilenko@extrawest.com)
[![Ask Me Anything !](https://img.shields.io/badge/Ask%20me-anything-1abc9c.svg)]()
![GitHub license](https://img.shields.io/github/license/Naereen/StrapDown.js.svg)
![GitHub release](https://img.shields.io/badge/release-v1.0.0-blue)

## PROJECT INFO

- **Vertex Ai Application on the latest version of Flutter**

## Features

- Multimodal Capability
- Ask Vertex Ai a question
- Add image and Vertex Ai will describe it

### Installing:

**1. Clone this repo to your folder:**

```
git clone https://github.com/extrawest/flutter-vertex-ai-showcase.git
```

**2. Change current directory to the cloned folder:**

```
cd flutter-vertex-ai-showcase
```

**3. Get packages**

```
flutter pub get
```

### Set up a Firebase project
1. Sign into the Firebase console.

2. Click Create project, and then use either of the following options:

Option 1: Create a wholly new Firebase project (and its underlying Google Cloud project automatically) by entering a new project name in the first step of the "Create project" workflow.

Option 2: "Add Firebase" to an existing Google Cloud project by selecting your Google Cloud project name from the drop-down menu in the first step of the "Create project" workflow.

Note that when prompted, you do not need to set up Google Analytics to use the Vertex AI for Firebase SDKs.

3. In the Firebase console, go to the Build with Gemini page, and then click the second card to launch a workflow that helps you do the following tasks. If you see a tab in the console for Vertex AI, then these tasks are complete.

Upgrade your project to use the Blaze pay-as-you-go pricing plan.

Enable the following two APIs for your project:
aiplatform.googleapis.com and firebaseml.googleapis.com.

### Connect your app to Firebase
1. Install the required command line tools:

If you haven't already, install the Firebase CLI.

Log into Firebase using your Google Account by running the following command:

```
firebase login
```

Install the FlutterFire CLI by running the following command from any directory:

```
dart pub global activate flutterfire_cli
```

2.Configure your apps to use Firebase:

Use the FlutterFire CLI to configure your Flutter apps to connect to Firebase.

From your Flutter project directory, run the following command to start the app configuration workflow:

```
flutterfire configure
```

## How to run

To run the project, you need to have Flutter installed on your machine. If you don't have it installed.
You also need to setup a firebase project or connect the existing one.
To make VertexAi work, you need to enable it in Google Cloud and setup billing for it.

## Preview
https://github.com/user-attachments/assets/9977dcb2-b305-44be-87ea-2e31c8ec4a21

https://github.com/user-attachments/assets/5d2f01e9-5e9d-4ce0-acb9-a02aaed50f0d

Created by Oleksandr Samoilenko

[Extrawest.com](https://www.extrawest.com), 2024