> For the complete documentation index, see [llms.txt](https://flutter-boilerplate.gitbook.io/flutter-boilerplate-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://flutter-boilerplate.gitbook.io/flutter-boilerplate-docs/features/components/gemini.md).

# Gemini

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

```dart
class GeminiComponent1
```

and the logic is in:

```dart
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.

```properties
gemini_api_key=[YOUR GEMINI API KEY]
```

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