搜尋套件、儲存庫與 APP 分類

套件詳情v0.4.7

attributed_text

帶有元數據跨度的文本,便於文字編輯和樣式設定。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
4.5萬
喜歡數
31
Pub 分數
140

安裝套件

flutter pub add attributed_text

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

一個 Flutter/Dart 套件,透過將元資料跨度附加至文字來實現豐富的文字處理,促進精確編輯與樣式設定。它讓開發者能夠管理帶有內嵌屬性(例如顏色、字型或連結)的格式化文字,非常適合用於文字編輯器、筆記應用及內容豐富的介面。該套件支援多個平台,包括行動裝置、網頁與桌面,確保跨裝置行為一致。設計時著重擴展性,能與現有的文字呈現系統良好整合。

適用情境

  • 在筆記應用中進行富文本編輯
  • 使用動態屬性設定文字樣式
  • 實現協作式文字編輯器
  • 在文字中加入超連結
  • 解析和渲染格式化內容

主要特色

  • 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 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。