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

插件详情v0.4.7

attributed_text

带有元数据跨度的文本,便于文本编辑和样式设置。

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
4.5万
喜欢数
31
Pub 分数
140

安装插件

flutter pub add attributed_text

插件介绍

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

一个 Flutter/Dart 包,通过向文本附加元数据跨度来实现丰富的文本处理,便于精确编辑和样式设置。它允许开发者管理带有嵌入属性(如颜色、字体或链接)的格式化文本,非常适合用于文本编辑器、笔记应用和内容丰富的界面。该包支持移动、Web 和桌面等多个平台,确保在不同设备上行为一致。设计时注重可扩展性,能与现有的文本渲染系统良好集成。

适合场景

  • 在笔记应用中进行富文本编辑
  • 使用动态属性设置文本样式
  • 实现协作式文本编辑器
  • 在文本中添加超链接
  • 解析和渲染格式化内容

主要特点

  • Metadata 跨度用于文本格式化
  • 跨平台支持
  • 可扩展的属性系统
  • 与 Flutter 文本控件的无缝集成
  • 支持复杂的文本操作

适合对象

  • 开发高级文本编辑器的开发者
  • 需要富文本输入的应用
  • 需要样式化或交互式文本的项目
  • 致力于多平台文本应用的团队
  • 具有动态文本样式的 UI 组件

使用建议

  • 需要理解文本跨度的概念
  • 可能增加简单文本显示的复杂性
  • 大型文本正文对性能的影响
  • 编辑时需要谨慎的状态管理
  • 除了基本用法外,文档有限

原始 README

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

Super Editor
Open source, configurable, extensible text editor and document renderer for Flutter.

Super Editor works with any backend. Plug yours in and go!


Super Editor was initiated by Superlist and is implemented and maintained by the Flutter Bounty Hunters, Superlist, and the contributors.




A Note on Releases (June, 2024):
We've been busy at work on core editor improvements like undo/redo, a stable editor pipeline, and useful editor reactions. These APIs have evolved a lot, so we haven't cut a standard release in a long time. We're still evolving those APIs right now.

Rest assured, Super Editor and the other projects in this repo are under regular development. We're still here and working hard.

We're now starting to publish developer releases of Super Editor so that the community can see what we've been working on.

As a reminder, your project doesn't need to use Pub to use Super Editor. You can depend directly on this GitHub repository to keep up with the latest changes. Please check the section below about our Git branches.




A Note on Branches:
Do you use Flutter's stable branch? Be sure to checkout super_editor's stable branch, for compatibility.
Do you use Flutter's master branch? Be sure to checkout super_editor's main branch, for compabitility.


Super Editor

Super Editor & Super Text Field

Please see the SuperEditor README about how to use the packages, or run the sample editor.

A web demo is accessible at https://superlist.com/SuperEditor.


We're building an entire toolkit!

You might notice that this is a mono-repo, which includes multiple projects. That's because we're not just building an editor. We're building a document editing toolkit. In fact, we're revolutionizing all text layout and editing with Flutter! Check out some of our supporting projects.

Super Editor Super Text Layout Attributed Text

Mono-repo Versioning

If you have compilation errors when using the GitHub version of super_editor, try overriding dependencies for the other packages in this mono-repo, e.g., super_editor_markdown, super_text_layout, and attributed_text. This project often makes changes to multiple packages within the mono-repo, which requires that you use the latest main or stable version of every package.

You can override your dependencies as follows:

dependency_overrides:
  super_editor:
    git:
      url: https://github.com/superlistapp/super_editor
      path: super_editor
      ref: stable # or "main"
  super_editor_markdown:
    git:
      url: https://github.com/superlistapp/super_editor
      path: super_editor_markdown
      ref: stable
  super_text_layout:
    git:
      url: https://github.com/superlistapp/super_editor
      path: super_text_layout
      ref: stable
  attributed_text:
    git:
      url: https://github.com/superlistapp/super_editor
      path: attributed_text
      ref: stable

所属分类

依赖

依赖清单 5 项

源码仓库

使用此插件的项目

暂无相关数据。