[Fluth]ReadMore-その他のビュー


ReadMoreText(
  _text,
  trimLines: 4,
  trimMode: TrimMode.Line,
  trimCollapsedText: '자세히 보기',
  trimExpandedText: '간략히',
  style: TextStyle(
    fontSize: 20,
    color: Colors.white
  ),
  moreStyle: TextStyle(fontSize: 14, fontWeight: FontWeight.bold, color: Colors.grey),
  lessStyle: TextStyle(fontSize: 14, fontWeight: FontWeight.bold, color: Colors.grey),
),
pubspec.yamlに追加
readmore: ^1.0.2
パッケージアドレス
https://pub.dev/packages/readmore