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

插件详情v4.2.1

flutter_link_previewer

从提供的文本中提取的可自定义链接和URL预览,支持从缓存中渲染。非常适合聊天应用。

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
10.2万
喜欢数
367
Pub 分数
150

安装插件

flutter pub add flutter_link_previewer

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

一个可定制的 Flutter 包,用于从文本中提取并显示链接预览,支持缓存渲染以提高性能。专为聊天应用设计,能够高效地从 URL 获取元数据,生成包含标题、描述和图片的丰富预览。该包可在多个平台上无缝集成,确保在 Android、iOS、Web、macOS、Windows 和 Linux 上行为一致。通过为分享的链接提供即时视觉上下文,提升用户体验。

适合场景

  • 聊天应用
  • 社交媒体动态
  • 消息接口
  • 内容分享平台
  • 实时协作工具

主要特点

  • 缓存链接渲染
  • 可自定义预览外观
  • 跨平台兼容性
  • 自动元数据提取
  • 支持丰富的媒体预览

适合对象

  • 开发聊天应用的开发者
  • 创建社交功能的团队
  • 需要URL可视化的应用
  • 寻找可重用组件的前端工程师
  • 针对多个平台的项目

使用建议

  • 需要互联网访问以进行首次获取
  • 缓存管理可能需要自定义
  • 对第三方元数据的控制有限
  • 外部响应缓慢可能导致延迟
  • 可能需要额外的样式以保持UI一致性

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

Flyer Chat 💬

Ship faster with a go-to chat SDK for Flutter

Pub Version Pub Likes Stars melos

Flyer Chat is an open-source chat UI package for Flutter applications, designed for performance, customization, and ease of integration.

✨ Features

  • 🔄 Backend-agnostic: Connect to any backend service.
  • 🧬 Adaptable: Perfect for real-time messengers, generative AI agents and LLM-based assistants, support platforms, and beyond.
  • 🎨 Highly Customizable: Tailor the UI with extensive theme options and builder functions.
  • 🧩 Modular: Pick and choose the features you want. You can change any part of the UI or swap it with your own custom implementation.
  • ⚡ Performance Optimized: Built for speed and smooth animations.
  • 🌐 Cross-Platform: Supports iOS, Android, Web, macOS, Windows, and Linux.
  • 📜 Open Source: Free to use under the Apache 2.0 License.

🚀 Installation

Add the package to your pubspec.yaml:

dependencies:
  flutter_chat_core: ^2.0.0
  flutter_chat_ui: ^2.0.0

Then, import and use the Chat widget.

📚 Documentation & Examples

For detailed usage, customization options, different message types, controllers, and more complex scenarios, please refer to the full documentation:

➡️ flyer.chat/docs/flutter/introduction ⬅️

Explore the comprehensive example application to see various features and customizations in action.

📦 Packages

The project is structured as a monorepo managed by Melos 💙.

Core Packages

These are the foundational packages included when you install flutter_chat_ui:

  • flutter_chat_ui: The main UI package.
  • flutter_chat_core: Contains core models, controllers, theming, and utilities used across the ecosystem.
  • cross_cache: Provides a cross-platform (IO & Web) image caching solution.
Optional Message Widget Packages

Opinionated packages for rendering different message types. You can also build your own!

🤝 Contributing

Contributions are welcome! Please see CONTRIBUTING.md for guidelines on how to contribute.

📜 License

Licensed under the Apache License, Version 2.0. See the LICENSE file for details.

所属分类

依赖

依赖清单 6 项

源码仓库

使用此插件的项目