read_more_text 0.0.1 copy "read_more_text: ^0.0.1" to clipboard
read_more_text: ^0.0.1 copied to clipboard

outdated

A simple package to implement easy to use read more text feature in your app.

A super fast lightweight easy to use package to implement read more functionality in your app. It's responsive to different screen sizes, and supports all platforms.

Features #

The Read more text is an easy to use yet powerful, and high customizable widget that brings the read more functionality to your app:

  • Lightweight and super easy to use.
  • Works with all locales.
  • Allow customize the main text, text read more/less TextStyle.
  • Customizable alignment of the read more/less widget.
  • Handler that is called whenever read more/less is clicked.
  • You can use custom icons for read more and read less, or hide the icon entirely if you don't need it.

Usage #

add to your pubspec.yaml:

read_more_text: ^0.0.1

then import it to your file:

import 'package:read_more_text/read_more_text.dart';

then use it:

ReadMoreText(
    'This is a very long text to demo the usages of this package\n'
    'This is a very long text to demo the usages of this package\n'
    'This is a very long text to demo the usages of this package\n'
    'This is a very long text to demo the usages of this package',
    numLines: 2,
    readMoreText: 'Read more',
    readLessText: 'Read less',
)

The result will be:

[Demo of read_more_text]

18
likes
0
points
209
downloads

Publisher

verified publisherali-habbash.com

Weekly Downloads

A simple package to implement easy to use read more text feature in your app.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on read_more_text