animated_line_through
1.0.5, released 2 years ago by vorky.io
Animates a line‑through effect over Text, RichText, TextField or TextFormField.
WASM-ready
What it does
Provides AnimatedLineThrough and AnimatedLineThroughRaw widgets that draw and animate a strike‑through line on supported text widgets. Supports RTL, custom stroke width and full control via an Animation object.
AI-written summary of version 1.0.5, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a simple animated strike‑through on text without writing custom painters
- You want RTL support and control over animation duration or progress
Skip it when
- You need complex text decorations beyond a line through
- You require a full‑featured animation library for many widget types
Strengths
- Very lightweight and focused on one effect
- Works with both static and editable text widgets
- RTL and stroke‑width customization
Weaknesses
- Only handles line‑through, no other decorations
- Limited to widgets using RenderParagraph or RenderEditable
- No built‑in theming beyond color and width
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
AnimatedLineThrough(
duration: const Duration(milliseconds: 500),
isCrossed: true,
strokeWidth: 2,
child: Text('Animated strike'),
);Alternatives
Packages that do the same job and could replace animated_line_through.
- flutter_animate
General‑purpose animation library that can animate any widget, including custom painters for line‑through effects
70Compare