This repository hosts the source code for a chatbot built with Flutter and powered by the Gemini API. The project demonstrates the integration of a cutting-edge AI API within a Flutter application to facilitate AI-driven conversations.
The Flutter-Gemini Chatbot is designed to showcase the practical implementation of the Gemini API for developing conversational AI applications. This project provides a foundational framework for Flutter developers interested in incorporating AI features into their apps.
Follow these instructions to set up and run the Flutter-Gemini Chatbot on your local machine.
- Ensure you have Flutter installed on your system. For installation guidance, refer to the official Flutter installation guide.
- Obtain an active Gemini API key from Google AI Studio.
- Clone this repository to your local machine:
git clone https://github.com/ayman3000/Flutter-Gemini_Chatbot.git
- Navigate to the project directory:
cd Flutter-Gemini_Chatbot
- Install the necessary Flutter packages:
flutter pub get
- Create a
.env
file in the project's root directory and add your Gemini API key:Adjust your project configuration as needed to securely load the API key.GEMINI_API_KEY=your_gemini_api_key_here
To launch the app in a development environment, execute:
flutter run
The Flutter-Gemini Chatbot serves as both a reference and a starting point for developers looking to explore the capabilities of the Gemini API or to develop their own AI-powered chat applications using Flutter.
Your contributions are welcome! If you have suggestions for improving this project, please feel free to fork the repository and submit a pull request.
For a detailed guide on how to integrate Flutter with the Gemini API, check out my YouTube video: How to Integrate Flutter with Gemini API.
This project is licensed under the MIT License. See the LICENSE file in this repository for more information.
- A special thank you to the Gemini API for providing the AI capabilities.
- Appreciation to the Flutter community for continuous support and inspiration.