From e471a7f3335aa2540aeedb723a69fc318777f20d Mon Sep 17 00:00:00 2001 From: Saina Amiri Moghadam Date: Fri, 2 Feb 2024 16:12:42 +0100 Subject: [PATCH] take the location finder off for downloaded videos --- lib/views/course_view/components/live_stream_section.dart | 1 + lib/views/course_view/components/small_stream_card.dart | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/views/course_view/components/live_stream_section.dart b/lib/views/course_view/components/live_stream_section.dart index 7195934..92ec595 100644 --- a/lib/views/course_view/components/live_stream_section.dart +++ b/lib/views/course_view/components/live_stream_section.dart @@ -89,6 +89,7 @@ class LiveStreamSection extends StatelessWidget { roomName: stream.item1.roomName, roomNumber: stream.item1.roomCode, path: imagePath, + isDownloaded: false, courseId: course.id, onTap: () { Navigator.push( diff --git a/lib/views/course_view/components/small_stream_card.dart b/lib/views/course_view/components/small_stream_card.dart index e396b14..4109b67 100644 --- a/lib/views/course_view/components/small_stream_card.dart +++ b/lib/views/course_view/components/small_stream_card.dart @@ -132,7 +132,7 @@ class SmallStreamCard extends StatelessWidget { _buildCourseTitle(themeData.textTheme), _buildCourseSubtitle(themeData.textTheme), const SizedBox(height: 15), - _buildLocation(themeData), + if (!isDownloaded!) _buildLocation(themeData), ], ), ),