A fun photo scavenger hunt game implemented using Flutter and Google AI Dart SDK. Generative AI model used for the project: Google Gemini Pro Vision.
You can follow these instructions to build the app and install it onto your device.
If you are new to Flutter, please first follow the Flutter Setup guide.
git clone git@github.com:mkobuolys/ai-photo-scavenger-hunt.git
cd ai-photo-scavenger-hunt
flutter pub get
flutter run --dart-define USE_FAKE_DATA=true
The flutter run
command both builds and installs the Flutter app to your device or emulator.
Notice the --dart-define USE_FAKE_DATA=true
flag. This flag is used to enable the fake data mode. In this mode, the app uses fake data instead of the Gemini API. This is useful for testing the app without access to the real generative AI model.
Create a new Firebase project and connect it to the Flutter app by running the following command (replace <project_id>
with your Firebase project ID):
flutterfire configure -p <project_id> -o lib/firebase_options.dart
Then, build and install the app:
flutter pub get
flutter run
For more information on how to set up Firebase for Flutter, see the Get started with the Gemini API using the Vertex AI in Firebase SDKs guide.