animated_read_more_text
0.0.6, released 3 years ago by dctech.dev
Flutter widget for text with animated Read more/Read less functionality
What it does
Provides a customizable widget for displaying text with an optional expandable Read more/Read less button. Dynamically adapts text length based on a predefined maximum line count and animates the expansion and collapse transitions.
AI-written summary of version 0.0.6, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to display lengthy text blocks that can be expanded or collapsed.
- You want smooth animations during text expansion and collapse.
Skip it when
- You require complex rich text parsing or specialized text formatting not supported by standard text widgets.
- You do not need animations or expand/collapse functionality.
Strengths
- Lightweight and easy to use
- Customizable animations, curves, and durations
- Custom labels and text styles for buttons and text
Weaknesses
- Limited to basic read more/read less functionality
- No documentation on advanced programmatic control or callbacks
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
AnimatedReadMoreText(
yourLongText,
maxLines: 3,
readMoreText: 'Expand',
readLessText: 'Collapse',
)Alternatives
Packages that do the same job and could replace animated_read_more_text.
- text_scroll
A Flutter widget that auto‑scrolls overflowing text like a marquee.
89Compare - re_editor
A lightweight text and code editor widget for Flutter with syntax highlighting and folding.
80Compare - see_more
Expandable text widget with trim, linkify, annotations, fade, and programmatic control
56Compare - rounded_loading_button_plus
Animated button with loading, success and error states for Flutter.
50Compare