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 ↗