showmore

A simple implementation of "show more" in Flutter.

showmoredemo

INSTALLATION:

Add package to pubspec.yaml

dependencies:
  flutter:
    sdk: flutter

  showmore:

EXAMPLE

ShowMore(
    content: 'Lorem ipsum dolor sit amet, prima liberavisse cu mei, his elit fabulas ex. Ne justo dicunt referrentur eam. Eum nulla eleifend id, ex vim ferri vitae pericula, qui epicurei interpretaris te. His ei debitis habemus intellegebat, essent assentior incorrupte ne has. Has te inani option, qui eu etiam feugiat epicurei, posidonium dissentias at nam. Ne his malis probatus consequat. Purto neglegentur vim ea, et vim reque quaestio corrumpit, perfecto singulis no his. Homero minimum efficiendi vix no. Vel an adhuc debet constituam, dicant consul percipitur nam ut, pri vide dicam feugait ei. Lorem homero graeci ex nam, labitur virtute mnesarchum in mel.',
    desiredMaxHeight: 200.0,
    desiredMinHeight: 56.0,
)

content - The string to display.

desiredMaxHeight - The height in pixels of the largest possible size a widget will be.

desiredMinHeight - The height in pixels of the smallest possible size a widget will be.

Getting Started

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Libraries

showmore