Flutter-Chat-Bot
一个基于 Flutter 的 AI 聊天机器人,支持通过文本、语音和图像进行交互。它具备实时聊天、语音转文字、文字转语音以及基于图像的查询功能,配合动态 Lottie 启动屏幕,提供流畅的用户体验。
- 星标
- 16
- 复刻
- 5
- 最近推送(UTC)
- 2026年1月29日
- 项目状态
- 未归档
原始 README
以下为英文项目原文快照,最新内容请访问 GitHub。
Flutter-Chat-Bot Application (Premium Glassmorphism)
This is a premium, AI-powered chatbot application built with Flutter. It features a stunning Glassmorphic UI and integrates Gemini AI for a seamless conversational experience using text, voice, and images.
✨ Features
- Premium Glassmorphism UI: A modern, translucent design with real-time blur and vibrant gradients.
- Gemini AI Integration: Powered by Google's Gemini 1.5 Flash for intelligent text and image processing.
- Voice Mode: High-fidelity voice interaction with real-time waveform animation and text-to-speech.
- Multi-modal Input: seamlessly switch between typing, voice recognition, and image-based queries.
- Session History: Persistence-ready chat sessions managed via a robust history manager.
- Modular Architecture: Clean, maintainable codebase with extracted services and reusable components.
🏗️ Technical Architecture
The project follows a modular design to ensure high maintainability and scalability:
-
Services Layer:
GeminiService.dart: Centralized API logic for streaming responses and handling multi-modal inputs.HistoryManager.dart: Manages local storage and session persistence.
-
Component library (
lib/components/):AppGlassContainer: Reusable glassmorphic styling engine.ChatBubble: Advanced message rendering with sender-specific gradients.ChatInput: Complex state-managed input controller for text, media, and voice.AnimatedOrb: High-performance visual feedback for AI states.
📸 Screenshots



🚀 Tech Stack
- Framework: Flutter
- AI Engine: Google Gemini
- State Management: StatefulWidget + Listeners
- Key Packages:
flutter_gemini(AI Logic)glassmorphism(UI Core)speech_to_text&flutter_tts(Voice)dash_chat_2(Chat Framework)lottie(Animations)
🛠️ Getting Started
- Clone the repository
- Add your Gemini API Key in
lib/const.dart:const String GEMINI_API_KEY = "YOUR_API_KEY_HERE"; - Run the app:
flutter run
📜 Permissions
- Microphone: For voice-to-text functionality.
- Storage/Gallery: To upload and analyze images with Gemini.
🤝 Contributing
Contributions are welcome! If you have ideas for new glassmorphic components or AI features, feel free to fork and PR.
语言DartC++CMakeSwiftCHTMLKotlinObjective-C
分类
使用的依赖
依赖清单 21 项
- flutter
{"sdk":"flutter"} - cupertino_icons
^1.0.8 - flutter_gemini
^2.0.5 - image_picker
^1.1.2 - dash_chat_2
^0.0.20 - flutter_tts
^4.0.2 - speech_to_text
^7.0.0 - permission_handler
^11.3.1 - chat_bubbles
^1.6.0 - flutter_sound
^9.16.0 - waveform
^0.0.1-nightly.49 - flutter_svg
^2.0.9 - flutter_launcher_icons
^0.13.1 - lottie
^3.0.0 - animated_splash_screen
^1.3.0 - shared_preferences
^2.5.4 - glassmorphism
^3.0.0 - path_provider
^2.1.5 - dio
^5.9.1 - flutter_test开发依赖
{"sdk":"flutter"} - flutter_lints开发依赖
^4.0.0
如何选择适合项目的代码仓?
先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。
- 通过仓库名、作者或描述搜索,再按技术分类缩小范围。
- 结合星标、复刻与最近推送比较项目;星标反映社区关注,不代表质量保证。
- 使用前在 GitHub 核对 README、许可证与 Issues。
来源与维护
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗