textf – Inline Text Formatting with Flutter’s Text API

textf is a lightweight Flutter widget for simple Markdown-like inline formatting .
Same API as Flutter’s Text — No boilerplate. No TextSpan pain. Just Textf.

Textf(
  'Hello **bold** *italic* ~~strike~~ `code` [Flutter](https://flutter.dev)',
  style: TextStyle(fontSize: 16),
)

Why use textf?

  • API-compatible with Text
  • Theme-aware – links and inline code adapt to your app’s ThemeData
  • Optional customization via TextfOptions
  • i18n – format strings stay translator-friendly
  • Interactive links made easy – with hover styling and mouse cursor support

Interactive links made easy

Note: textf is not a replacement for full Markdown renderers. It’s purpose-built for cases where you need just inline formatting — not headings, lists, or block layout.

GitHub | pub.dev

Questions or feedback welcome!

5 Likes

seems more user friendly than richtext

Textf v0.4.1 is here! Just added:
:sparkles: ++Underline++ support
:sparkles: ==Highlighting== (theme-aware!)

Same API as Flutter’s Text Widget.

Textf('Hello ==flutter== and **dart**!')
Textf('Visit [Flutter website](https://flutter.dev)')
2 Likes