simple_gradient_text
1.4.0, released 11 months ago by alexastudillo.com
A single-purpose Flutter widget to create linear and radial gradient texts easily.
What it does
Provides a GradientText widget that applies linear or radial color gradients directly to text. It supports properties like style, colors, gradient stops, max lines, soft wrap, and text scaling.
AI-written summary of version 1.4.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to display text with a linear or radial color gradient in your Flutter app.
- You want a simple widget-based alternative to manually setting up ShaderMask for gradient texts.
Skip it when
- You require complex multi-color animations or shaders that go beyond standard linear and radial gradients.
Strengths
- Very easy to set up and use with a clean widget API.
- Supports both linear and radial gradients out of the box.
- Includes support for gradient stops, max lines, and text scaling.
Weaknesses
- Limited to linear and radial text gradients.
- Does not handle complex text animations natively.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
GradientText(
'Gradient Text Example',
style: TextStyle(
fontSize: 40.0,
),
colors: [
Colors.blue,
Colors.red,
Colors.teal,
],
)Alternatives
Packages that do the same job and could replace simple_gradient_text.
- re_editor
A lightweight text and code editor widget for Flutter with syntax highlighting and folding.
80Compare - flutter_painter
A Flutter widget for drawing scribbles, text, shapes and images on a canvas.
74Compare - widget_tooltip
A customizable tooltip widget for Flutter with multiple trigger modes and smart positioning
48Compare - circular_widgets
Display widgets in a circle with customizable radius and spacing.
45Compare