How to create a generative AI app using Gemini and Flutter
Overview of the google_generative_ai package and how to use it to create a generative AI app using Gemini and Flutter.
Published in
13 min readMar 11, 2024
Last month, the Flutter team announced a new Dart SDK — google_generative_ai. It enables developers to use Google’s state-of-the-art generative AI models in their applications. In this article, we will dive into the journey of building my first AI-powered photo scavenger hunt game using the new AI Dart SDK, Gemini and Flutter.
Note: I moved this blog to my personal website. For a better reading experience, up to date articles, interactive code examples and some extra content FOR FREE, check kazlauskas.dev.
Table of Contents
- Game overview
- Project structure
- State management using BLoC
- Using the google_generative_ai package
- Prompt engineering
- Summary