enhanced_read_more 0.0.2 copy "enhanced_read_more: ^0.0.2" to clipboard
enhanced_read_more: ^0.0.2 copied to clipboard

A Flutter package that allows you to expand and collapse text dynamically

enhanced_read_more #

A Flutter plugin than allow expand and collapse text.

This is a fork of https://github.com/jonataslaw/readmore that allows you to control the expanded and collapsed state

usage: #

add to your pubspec

enhanced_read_more: ^0.0.2

and import:

import 'package:readmore/readmore.dart';
ReadMoreText(
  'Flutter is Google’s mobile UI open source framework to build high-quality native (super fast) interfaces for iOS and Android apps with the unified codebase.',
  trimLines: 2,
  collapsed: true,
  colorClickableText: Colors.pink,
  trimMode: TrimMode.Line,
  trimCollapsedText: 'Show more',
  trimExpandedText: 'Show less',
  moreStyle: TextStyle(fontSize: 14, fontWeight: FontWeight.bold),
);
3
likes
140
pub points
37%
popularity

Publisher

unverified uploader

A Flutter package that allows you to expand and collapse text dynamically

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on enhanced_read_more