Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 910 Bytes

File metadata and controls

23 lines (15 loc) · 910 Bytes

flutter_sample

Flutter generative AI sample

A Flutter chat application that uses the google_generative_ai package.

Getting started

To use the Gemini API, you'll need an API key. If you don't already have one, create a key in Google AI Studio: https://makersuite.google.com/app/apikey.

When running the app, include your API key using the --dart-define flag:

flutter run --dart-define=API_KEY=$GOOGLE_API_KEY

If you use VSCode, you can specify --dart-define variables in your launch.json file.

If you use Android Studio or IntelliJ you can use run / debug configurations (https://www.jetbrains.com/help/idea/run-debug-configuration.html).