Tag

RichText

1 views collected around this technical thread.

Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 11, 2022 · Mobile Development

Implementing Text and Image Mixed Editing in a Flutter Rich Text Editor

This article explains how to extend a Flutter rich‑text editor to support mixed text‑image layout by using WidgetSpan, InlineSpan trees, and the image_picker plugin, providing detailed code examples and a deep dive into the rendering pipeline.

FlutterImageInlineSpan
0 likes · 10 min read
Implementing Text and Image Mixed Editing in a Flutter Rich Text Editor
Xianyu Technology
Xianyu Technology
Apr 16, 2020 · Mobile Development

Design and Implementation of RichText Mixed Content in Flutter for Xianyu Messaging

The article details Xianyu’s migration of its messaging rich‑text system to Flutter, explaining how RichText became a MultiChildRenderObjectWidget, how custom emoji placeholders are converted to HTML tags and parsed into TextSpan and WidgetSpan elements, enabling colored text, clickable links, and emoji rendering across Flutter versions.

FlutterHTML parsingMobile Development
0 likes · 9 min read
Design and Implementation of RichText Mixed Content in Flutter for Xianyu Messaging
Xianyu Technology
Xianyu Technology
Jul 31, 2019 · Mobile Development

Design and Implementation of a Powerful Rich Text Component in Flutter

To meet Xianyu’s e‑commerce product‑detail needs, the team built a custom RichText solution in Flutter that uses a zero‑width‑space placeholder (SpaceSpan) with adjustable letter‑spacing and font‑size to reserve space, then positions any widget via a Stack, enabling inline images, emojis and custom components without altering Flutter’s core rendering, though further work is needed for automatic sizing, text selection and editor integration.

FlutterMobile DevelopmentRichText
0 likes · 7 min read
Design and Implementation of a Powerful Rich Text Component in Flutter