https://github.com/marb2000/vertexai_for_firebase
https://github.com/marb2000/vertexai_for_firebase
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/marb2000/vertexai_for_firebase
- Owner: marb2000
- Created: 2024-05-22T18:10:41.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-25T04:46:49.000Z (over 1 year ago)
- Last Synced: 2025-03-28T23:34:29.262Z (about 1 year ago)
- Language: Dart
- Size: 489 KB
- Stars: 1
- Watchers: 3
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Vertex AI for Firebase | Flutter Sample App
This Flutter app leverages [Vertex AI for Firebase Dart SDK](https://firebase.google.com/docs/vertex-ai) to generate creative stories about a magic backpack. It provides a user interface where you can read the generated story and request a new one by tapping a button.
__Key Learning Points:__
- Integrating AI into Apps: You'll see how to use Vertex AI for Firebase to incorporate generative AI capabilities (using the Gemini API) into your Flutter applications.
- Asynchronous Operations: The app uses async and await to handle the story generation process, which can take time. This ensures a smooth user experience without freezing the UI.
- State Management: The code demonstrates how to manage the widget state so the UI can update in response to the AI's output.
- Error Handling: The try...catch block handles potential errors during story generation.