feat : EventDetails : Back button + read more option
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'dart:async';
|
||||
import 'package:readmore/readmore.dart';
|
||||
|
||||
class PostCardWidget extends StatefulWidget {
|
||||
final String title;
|
||||
@@ -105,9 +106,14 @@ class _PostCardWidgetState extends State<PostCardWidget> {
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
// Contenu
|
||||
Text(
|
||||
ReadMoreText(
|
||||
widget.content,
|
||||
style: Theme.of(context).textTheme.bodyMedium?.copyWith(
|
||||
trimMode: TrimMode.Line,
|
||||
trimLines: 2,
|
||||
colorClickableText: Theme.of(context).colorScheme.primary,
|
||||
trimCollapsedText: 'Voir plus',
|
||||
trimExpandedText: 'Voir moins',
|
||||
moreStyle: Theme.of(context).textTheme.bodyMedium?.copyWith(
|
||||
color: Colors.white,
|
||||
height: 1.4,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user