flutter_show_more 0.1.2
flutter_show_more: ^0.1.2

Flutter Android iOS web

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

5
likes
80
pub points
67%
popularity

Flutter widget for limiting the amount of text to show.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

joshuamatta1996@gmail.com

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_show_more