mirror of https://github.com/flutter/samples.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Sumanmali019
12ec63b686
|
7 months ago | |
---|---|---|
.. | ||
android | 8 months ago | |
assets | 8 months ago | |
ios | 8 months ago | |
lib | 7 months ago | |
linux | 8 months ago | |
macos | 8 months ago | |
web | 8 months ago | |
windows | 8 months ago | |
.gitignore | 8 months ago | |
.metadata | 8 months ago | |
README.md | 8 months ago | |
analysis_options.yaml | 8 months ago | |
pubspec.yaml | 8 months ago |
README.md
This is a demo app created for the Google I/O talk "Gemini API and Flutter: Practical, AI-driven apps with Google AI tools"
Check out the the prompt we used on Google AI Studio.
Running the app
Before running the app:
- Get an API key from ai.google.dev.
- Create a Firebase project, and install the Flutter Firebase CLI, and configure the platforms that you want to run this app on. You can find instructions by following steps 2-4 of the Get to know Firebase for Flutter codelab.
Then, pass the API key in with dart define when running the app:
flutter run --dart-define=API_KEY=your_api_key