Skip to content
pubscout

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

WASM-ready
$ flutter pub add animated_read_more_text
Source repository

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.