Skip to content
pubscout

rounded_background_text

0.6.0, released 2 years ago by bdlukaa.dev

Highlight text, text fields, and text spans with customizable rounded corners.

WASM-ready
$ flutter pub add rounded_background_text
Source repository

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.