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.

Mangirdas Kazlauskas
Flutter Community

--

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

Game overview

AI Photo Scavenger Hunt game screenshots

--

--

Mangirdas Kazlauskas
Flutter Community

Google Developer Expert for Flutter & Dart | Read the blog for free on kazlauskas.dev | Let's stay in touch - https://twitter.com/mkobuolys