From 66833ef1a19f139766cb86fd660a5949b25d6802 Mon Sep 17 00:00:00 2001 From: Achraf Labidi Date: Fri, 2 Feb 2024 16:30:13 +0100 Subject: [PATCH] change `live now` to `live` --- lib/l10n/app_de.arb | 2 +- lib/l10n/app_en.arb | 2 +- lib/l10n/app_es.arb | 2 +- lib/views/course_view/components/stream_card.dart | 3 ++- .../course_view/course_detail_view/course_detail_view.dart | 1 - 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/l10n/app_de.arb b/lib/l10n/app_de.arb index 08f51e1..eab6a60 100644 --- a/lib/l10n/app_de.arb +++ b/lib/l10n/app_de.arb @@ -5,7 +5,7 @@ }, "my_courses": "Meine Kurse", "public_courses": "Öffentliche Kurse", - "live_now": "Jetzt Live", + "live_now": "Live", "pinned_courses": "Angeheftete Kurse", "pinned_empty": "Sie haben keine angehefteten Kurse.", "pin": "Anheften", diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb index c5da565..ec2a657 100644 --- a/lib/l10n/app_en.arb +++ b/lib/l10n/app_en.arb @@ -5,7 +5,7 @@ }, "my_courses": "My Courses", "public_courses": "Public Courses", - "live_now": "Live Now", + "live_now": "Live", "pinned_courses": "Pinned Courses", "pinned_empty": "You have no pinned courses.", "pin": "Pin", diff --git a/lib/l10n/app_es.arb b/lib/l10n/app_es.arb index f789e0e..9d554f8 100644 --- a/lib/l10n/app_es.arb +++ b/lib/l10n/app_es.arb @@ -5,7 +5,7 @@ }, "my_courses": "Mis Cursos", "public_courses": "Cursos Públicos", - "live_now": "En Vivo Ahora", + "live_now": "En Vivo", "pinned_courses": "Cursos Anclados", "pinned_empty": "No tienes cursos anclados.", "pin": "Anclar", diff --git a/lib/views/course_view/components/stream_card.dart b/lib/views/course_view/components/stream_card.dart index 2186882..605d32c 100644 --- a/lib/views/course_view/components/stream_card.dart +++ b/lib/views/course_view/components/stream_card.dart @@ -71,7 +71,8 @@ class StreamCardState extends ConsumerState { crossAxisAlignment: CrossAxisAlignment.stretch, children: [ _buildHeader( - title: widget.stream.name, + title: widget.stream.name != '' ? widget.stream.name : 'Lecture: ${DateFormat('EEEE. dd', Localizations.localeOf(context).toString()) + .format(widget.stream.start.toDateTime())}', subtitle: widget.stream.description, length: widget.stream.duration, themeData: themeData, diff --git a/lib/views/course_view/course_detail_view/course_detail_view.dart b/lib/views/course_view/course_detail_view/course_detail_view.dart index a9e8078..076fbf1 100644 --- a/lib/views/course_view/course_detail_view/course_detail_view.dart +++ b/lib/views/course_view/course_detail_view/course_detail_view.dart @@ -181,7 +181,6 @@ class CourseDetailState extends ConsumerState { final streamWithThumb = streamsWithThumb[index]; final stream = streamWithThumb.item1; final thumbnail = _getThumbnailUrl(streamWithThumb.item2); - return Padding( padding: const EdgeInsets.symmetric(vertical: 8.0), child: StreamCard(