expandable_richtext 1.0.6 expandable_richtext: ^1.0.6 copied to clipboard
A text widget which you can use to initially only show a defined number of lines of a probably long text. it also support clickable @mention,
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add expandable_richtext
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
expandable_richtext: ^1.0.6
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:expandable_richtext/expandable_rich_text.dart';
import 'package:expandable_richtext/expandable_richtext_controller.dart';
import 'package:expandable_richtext/expandable_richtext_state.dart';
import 'package:expandable_richtext/text_parser.dart';
import 'package:expandable_richtext/text_segment.dart';