flutter_show_more 0.1.0 flutter_show_more: ^0.1.0 copied to clipboard
Flutter widget for limiting the amount of text to show.
show_more #
Flutter widget for limiting the amount of text to show.
Installation #
Add this to your package's pubspec.yaml file
dependencies:
...
show_more: ^latest.version.here
Usage #
First import show_more.dart
import 'package:show_more/show_more.dart';
ShowMoreText
with all attributes
ShowMoreText(
veryLongText,
maxLength: 100,
style: TextStyle(fontSize: 12, color: Colors.grey),
showMoreText: 'show more',
showMoreStyle: TextStyle(
fontSize: 12,
fontWeight: FontWeight.bold,
color: Theme.of(context).accentColor,
),
shouldShowLessText: true,
showLessText: 'show less',
),