Tagged articles
3 articles
Page 1 of 1
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.

EmojiFlutterMobile 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