feat : replace ReadMore by custom readmoretext
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'dart:async';
|
||||
import 'package:readmore/readmore.dart';
|
||||
import 'ReadMoreText.dart';
|
||||
|
||||
class PostCardWidget extends StatefulWidget {
|
||||
final String title;
|
||||
@@ -105,15 +105,11 @@ class _PostCardWidgetState extends State<PostCardWidget> {
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
// Contenu
|
||||
ReadMoreText(
|
||||
widget.content,
|
||||
trimMode: TrimMode.Line,
|
||||
ReadMoreText(widget.content,
|
||||
trimLines: 2,
|
||||
colorClickableText: Theme.of(context).colorScheme.primary,
|
||||
trimCollapsedText: 'Voir plus',
|
||||
trimExpandedText: 'Voir moins',
|
||||
moreStyle: Theme.of(context).textTheme.bodyMedium?.copyWith(
|
||||
collapsedText: '... Voir plus',
|
||||
expandedText: ' Voir moins',
|
||||
textStyle: Theme.of(context).textTheme.bodyMedium?.copyWith(
|
||||
color: Colors.white,
|
||||
height: 1.4,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user