textf library
A lightweight text widget library for simple inline Markdown-like formatting.
Exports
-
Textf: A drop-in replacement for Flutter's Text widget that supports inline formatting markers for bold, italic, code, links, highlights, superscript, subscript, and widget placeholders.
-
TextfOptions: An InheritedWidget for configuring formatting styles, link callbacks, and script geometry for all descendant Textf widgets.
-
TextfEditingController: A TextEditingController that renders textf-formatted text inside TextField and TextFormField widgets.
Example
import 'package:textf/textf.dart';
Textf('Hello **bold** *italic* `code` [link](https://example.com)');
Classes
- Textf
- A lightweight text widget for simple inline formatting.
- TextfEditingController
- A TextEditingController that renders textf-formatted text in text fields.
- TextfOptions
- Configuration options for Textf widgets within a specific scope.
- TextfOptionsData
- Holds the pre-merged, effective configuration for Textf widgets.
Enums
- MarkerVisibility
- Controls how formatting markers are displayed in the text field.