flutter_show_more 0.1.2 copy "flutter_show_more: ^0.1.2" to clipboard
flutter_show_more: ^0.1.2 copied to clipboard

Flutter widget for limiting the amount of text to show.

flutter_show_more #

Flutter widget for limiting the amount of text to show.

pub package

Installation #

Add this to your package's pubspec.yaml file

dependencies:
  ...
  flutter_show_more: ^latest.version.here

Usage #

First import show_more.dart

import 'package:flutter_show_more/flutter_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',
),

Screenshots #

License #

MIT License

7
likes
30
pub points
18%
popularity

Publisher

unverified uploader

Flutter widget for limiting the amount of text to show.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_show_more