see_more 1.0.0 copy "see_more: ^1.0.0" to clipboard
see_more: ^1.0.0 copied to clipboard

Expandable text widget with See More/Less, line-based trimming, Instagram-style fade effect, and smooth animations. Perfect for social media posts.

1.0.0 #

Breaking Changes #

  • Complete rewrite with new API
  • Renamed parameters for clarity:
    • trimLengthmaxCharacters
    • trimLinesmaxLines
    • seeMoreTextexpandText
    • seeLessTextcollapseText
    • seeMoreStyleexpandTextStyle
    • seeLessStylecollapseTextStyle
    • enableFadeshowFadeEffect
    • fadeLengthfadeHeight
    • seeMoreButtonSpacingexpandButtonSpacing

New Features #

  • Fade effect - Gradient fade at text end like Instagram/Twitter (showFadeEffect: true)
  • Line-based trimming - Trim by number of lines using trimMode: TrimMode.line
  • Word boundary trimming - No more cutting words in half (trimAtWordBoundary: true)
  • Ellipsis support - Customizable ellipsis before expand button (ellipsis: "...")
  • Callbacks - onExpand and onCollapse callbacks for state tracking
  • Initial state - initiallyExpanded parameter
  • Theme integration - Uses theme colors when no style provided
  • Text alignment - textAlign parameter
  • RTL support - textDirection parameter (uses Directionality.of(context))
  • Animation curve - animationCurve parameter
  • Accessibility - Semantics wrapper and textScaler parameter for font scaling
  • Button spacing - expandButtonSpacing parameter for fade mode

Bug Fixes #

  • Fixed memory leak - TapGestureRecognizer now properly disposed
  • Fixed memory leak - TextPainter now properly disposed
  • Fixed text cutting mid-word

Other #

  • 25 comprehensive unit tests
  • Code organized with part/part of for better maintainability
  • Requires Flutter >=3.16.0

0.0.5 #

  • added video

0.0.4 #

  • minor bug fixes with more attribute

0.0.3 #

  • minor bug fixes

0.0.2 #

  • Readme updated.

0.0.1 #

  • Initial release.
9
likes
160
points
427
downloads

Documentation

API reference

Publisher

verified publisherigloodev.in

Weekly Downloads

Expandable text widget with See More/Less, line-based trimming, Instagram-style fade effect, and smooth animations. Perfect for social media posts.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on see_more