Gemini

To showcase how to use Gemini this widget contians a Text Input field to . The widget class is:

class GeminiComponent1

and the logic is in:

class GeminiRepository

For the Gemini API Key create a file called ".env" (no text before the dot) at the root of the flutter project and insert this entry.

gemini_api_key=[YOUR GEMINI API KEY]

You can create a Gemni API Key here https://aistudio.google.com/app/prompts/new_chat

Last updated