From d59f871c2a218a21273013911286bcca95c36caa Mon Sep 17 00:00:00 2001 From: Achraf Labidi Date: Fri, 2 Feb 2024 16:37:51 +0100 Subject: [PATCH] change `timestamp` and `title` in stream --- lib/views/course_view/components/stream_card.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/views/course_view/components/stream_card.dart b/lib/views/course_view/components/stream_card.dart index 605d32c..ad50ffb 100644 --- a/lib/views/course_view/components/stream_card.dart +++ b/lib/views/course_view/components/stream_card.dart @@ -208,7 +208,7 @@ class StreamCardState extends ConsumerState { ), padding: const EdgeInsets.all(5), child: Text( - formatDuration(widget.stream.duration), + formatDuration(widget.stream.end.toDateTime().difference(widget.stream.start.toDateTime()).inMinutes), style: themeData.textTheme.labelSmall?.copyWith( fontSize: 12, color: Colors.white,