Skip to content
pubscout

stroke_text

1.0.0, released 2 years ago by mohamed-abdo.com

A simple Flutter widget to apply a stroke or border style to text.

WASM-ready
$ flutter pub add stroke_text
Source repository

What it does

Provides a single-purpose widget called StrokeText that renders text with custom stroke colors and stroke widths. It also supports text styling, text alignment, and maximum lines.

AI-written summary of version 1.0.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to display text with an outlined border or stroke effect in Flutter.
  • You want a quick way to customize text stroke width and color without complex custom painters.

Skip it when

  • You need complex text animations or rich text formatting beyond basic text styles.

Strengths

  • Easy to integrate and use with familiar TextStyle parameters.
  • Supports customizable stroke color and width.
  • Supports textAlign and maxLines properties.

Weaknesses

  • Limited feature set beyond basic text stroking.
  • No advanced text effects or rich text builder support documented.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
StrokeText(
  text: "Flutter",
  textStyle: TextStyle(
    fontSize: 50,
    color: Colors.green
  ),
  strokeColor: Colors.amber,
  strokeWidth: 5,
)

Alternatives

Packages that do the same job and could replace stroke_text.