rounded_background_text
0.6.0, released 2 years ago by bdlukaa.dev
Highlight text, text fields, and text spans with customizable rounded corners.
What it does
Provides specialized widgets that paint rounded background highlights directly behind text using custom line metrics. Supports multiline text, selectable text, and text input fields.
AI-written summary of version 0.6.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to highlight text with rounded background corners in Flutter.
- You want rounded background highlights inside text fields or rich text spans.
Skip it when
- You just need standard rectangular background colors available natively in TextStyle.
Strengths
- Supports multiline text and text fields with automatic highlight tracking.
- Provides custom control over inner and outer corner radii.
Weaknesses
- Corner radius values are restricted between 0.0 and 20.0.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
RoundedBackgroundText(
'A cool text to be highlighted',
style: const TextStyle(fontWeight: FontWeight.bold),
backgroundColor: Colors.white,
)Alternatives
Packages that do the same job and could replace rounded_background_text.
- re_editor
A lightweight text and code editor widget for Flutter with syntax highlighting and folding.
80Compare - flutter_advanced_drawer
Customizable advanced drawer widget for Flutter
77Compare - animated_hint_textfield
Flutter package for animating TextField hint and label text with transitions.
66Compare - formatted_text
A simple text formatting package for TextField and Text widgets.
47Compare