搜索插件、代码仓与 APP 分类

GitHub 代码仓tariqjamel/Flutter-Chat-Bot

Flutter-Chat-Bot

一个基于 Flutter 的 AI 聊天机器人,支持通过文本、语音和图像进行交互。它具备实时聊天、语音转文字、文字转语音以及基于图像的查询功能,配合动态 Lottie 启动屏幕,提供流畅的用户体验。

Flutter-Chat-Bot 项目封面
星标
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

  1. Clone the repository
  2. Add your Gemini API Key in lib/const.dart:
    const String GEMINI_API_KEY = "YOUR_API_KEY_HERE";
    
  3. 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.

Tariq Jamil GitHub avatar
GitHub 作者

Tariq Jamil ↗

Android + Embedded developer: Writing code that speaks both human and machine languages.

Islamabad, Pakistan官方网站 ↗
语言DartC++CMakeSwiftCHTMLKotlinObjective-C

分类

使用的依赖

依赖清单 21 项

如何选择适合项目的代码仓?

先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。

  1. 通过仓库名、作者或描述搜索,再按技术分类缩小范围。
  2. 结合星标、复刻与最近推送比较项目;星标反映社区关注,不代表质量保证。
  3. 使用前在 GitHub 核对 README、许可证与 Issues。

来源与维护

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗