diff --git a/lib/base/networking/api/handler/auth_handler.dart b/lib/base/networking/api/handler/auth_handler.dart index dc6cbfa..c0565bc 100644 --- a/lib/base/networking/api/handler/auth_handler.dart +++ b/lib/base/networking/api/handler/auth_handler.dart @@ -51,7 +51,7 @@ class AuthHandler { .i('Received HTTP response with status code: ${response.statusCode}'); } catch (e) { _logger.e( - 'Error during basic authentication for user: $username, Error: $e'); + 'Error during basic authentication for user: $username, Error: $e',); throw AppError.userError(); } try { diff --git a/lib/view_models/chat_view_model.dart b/lib/view_models/chat_view_model.dart index be01210..fe5f0fe 100644 --- a/lib/view_models/chat_view_model.dart +++ b/lib/view_models/chat_view_model.dart @@ -18,7 +18,7 @@ class ChatViewModel extends StateNotifier { final messages = await ChatHandlers(_grpcHandler).getChatMessages(streamId); state = state.copyWith( - messages: messages, isLoading: false, accessDenied: false); + messages: messages, isLoading: false, accessDenied: false,); } catch (e) { state = state.copyWith( error: e as AppError, @@ -39,9 +39,9 @@ class ChatViewModel extends StateNotifier { await ChatHandlers(_grpcHandler).getChatMessages(streamId); final combinedMessages = List.from(state.messages ?? []) ..addAll(messages - .where((newMessage) => !state.messages!.contains(newMessage))); + .where((newMessage) => !state.messages!.contains(newMessage)),); state = state.copyWith( - messages: combinedMessages, isLoading: false, accessDenied: false); + messages: combinedMessages, isLoading: false, accessDenied: false,); } catch (e) { state = state.copyWith( error: e as AppError, diff --git a/lib/view_models/download_view_model.dart b/lib/view_models/download_view_model.dart index 9a80560..3228a4f 100644 --- a/lib/view_models/download_view_model.dart +++ b/lib/view_models/download_view_model.dart @@ -44,7 +44,7 @@ class DownloadViewModel extends StateNotifier { } Future downloadVideo(String videoUrl, Stream stream, - String streamName, String streamDate) async { + String streamName, String streamDate,) async { try { final directory = await getApplicationDocumentsDirectory(); final filePath = @@ -63,7 +63,7 @@ class DownloadViewModel extends StateNotifier { 'duration': Tools.formatDuration(stream.end .toDateTime() .difference(stream.start.toDateTime()) - .inMinutes), + .inMinutes,), 'description': stream.description, 'date': streamDate, }; diff --git a/lib/views/chat_view/chat_view_state.dart b/lib/views/chat_view/chat_view_state.dart index bb6a1a4..b4eeb75 100644 --- a/lib/views/chat_view/chat_view_state.dart +++ b/lib/views/chat_view/chat_view_state.dart @@ -62,7 +62,7 @@ class ChatViewState extends ConsumerState { ScaffoldMessenger.of(context).showSnackBar( const SnackBar( content: Text( - 'You are sending messages too fast. Please wait a 60 seconds.'), + 'You are sending messages too fast. Please wait a 60 seconds.',), ), ); }); diff --git a/lib/views/chat_view/poll_view_state.dart b/lib/views/chat_view/poll_view_state.dart index 95ae178..203d993 100644 --- a/lib/views/chat_view/poll_view_state.dart +++ b/lib/views/chat_view/poll_view_state.dart @@ -264,7 +264,7 @@ class PollViewState extends ConsumerState { return Padding( padding: const EdgeInsets.all( - 8.0), // Consistent padding with the rest of the layout + 8.0,), // Consistent padding with the rest of the layout child: ElevatedButton( onPressed: selectedOptions.containsKey(poll.id) ? () { diff --git a/lib/views/chat_view/suggested_streams_list.dart b/lib/views/chat_view/suggested_streams_list.dart index 5e7dbf4..176ad95 100644 --- a/lib/views/chat_view/suggested_streams_list.dart +++ b/lib/views/chat_view/suggested_streams_list.dart @@ -23,7 +23,7 @@ class SuggestedStreamsWidget extends StatelessWidget { leading: const Icon(Icons.play_circle_outline), title: Text(stream.name != '' ? stream.name - : 'Lecture: ${DateFormat('EEEE. dd', Localizations.localeOf(context).toString()).format(stream.start.toDateTime())}'), + : 'Lecture: ${DateFormat('EEEE. dd', Localizations.localeOf(context).toString()).format(stream.start.toDateTime())}',), subtitle: Text( DateFormat('dd MMMM yyyy').format(stream.start.toDateTime()), ), diff --git a/lib/views/course_view/components/course_card.dart b/lib/views/course_view/components/course_card.dart index 125cfc7..f7fdb68 100644 --- a/lib/views/course_view/components/course_card.dart +++ b/lib/views/course_view/components/course_card.dart @@ -172,7 +172,7 @@ class CourseCard extends StatelessWidget { ), if (isPinned) Icon(Icons.push_pin, - color: themeData.primaryColor, size: 16), + color: themeData.primaryColor, size: 16,), ], ), ), diff --git a/lib/views/course_view/components/small_stream_card.dart b/lib/views/course_view/components/small_stream_card.dart index a7315e2..3b8b0c0 100644 --- a/lib/views/course_view/components/small_stream_card.dart +++ b/lib/views/course_view/components/small_stream_card.dart @@ -77,14 +77,14 @@ class SmallStreamCard extends StatelessWidget { } Widget _buildStreamCard( - BuildContext context, ThemeData themeData, double cardWidth) { + BuildContext context, ThemeData themeData, double cardWidth,) { return (isDownloaded != null && showDeleteConfirmationDialog != null) ? _buildDownloadedCard(context, themeData, cardWidth) : _buildLiveCard(themeData, cardWidth); } Widget _buildDownloadedCard( - BuildContext context, ThemeData themeData, double cardWidth) { + BuildContext context, ThemeData themeData, double cardWidth,) { return Slidable( key: Key(courseId.toString()), closeOnScroll: true, diff --git a/lib/views/course_view/components/stream_card.dart b/lib/views/course_view/components/stream_card.dart index cf1ffc1..522a3a8 100644 --- a/lib/views/course_view/components/stream_card.dart +++ b/lib/views/course_view/components/stream_card.dart @@ -198,7 +198,7 @@ class StreamCardState extends ConsumerState { Tools.formatDuration(widget.stream.end .toDateTime() .difference(widget.stream.start.toDateTime()) - .inMinutes), + .inMinutes,), style: themeData.textTheme.labelSmall?.copyWith( fontSize: 12, color: Colors.white, diff --git a/lib/views/course_view/downloaded_courses_view/download_content_view.dart b/lib/views/course_view/downloaded_courses_view/download_content_view.dart index 117f059..e794ca9 100644 --- a/lib/views/course_view/downloaded_courses_view/download_content_view.dart +++ b/lib/views/course_view/downloaded_courses_view/download_content_view.dart @@ -48,7 +48,7 @@ class DownloadCoursesContentView extends ConsumerWidget { child: Padding( padding: const EdgeInsets.symmetric(vertical: 295.0), child: Text(AppLocalizations.of(context)! - .no_downloaded_courses), + .no_downloaded_courses,), ), ), ), diff --git a/lib/views/course_view/downloaded_courses_view/downloaded_courses_view.dart b/lib/views/course_view/downloaded_courses_view/downloaded_courses_view.dart index aad5ea3..8ba6784 100644 --- a/lib/views/course_view/downloaded_courses_view/downloaded_courses_view.dart +++ b/lib/views/course_view/downloaded_courses_view/downloaded_courses_view.dart @@ -67,7 +67,7 @@ class DownloadedCoursesState extends ConsumerState { title: AppLocalizations.of(context)!.download, filterOptions: [ AppLocalizations.of(context)!.newest_first, - AppLocalizations.of(context)!.oldest_first + AppLocalizations.of(context)!.oldest_first, ], onClick: (String choice) { // Handle filter option click diff --git a/lib/views/notifications_view/notifications_screen_view.dart b/lib/views/notifications_view/notifications_screen_view.dart index f92427e..6594cf3 100644 --- a/lib/views/notifications_view/notifications_screen_view.dart +++ b/lib/views/notifications_view/notifications_screen_view.dart @@ -41,14 +41,14 @@ class NotificationsScreen extends ConsumerWidget { scrollDirection: Axis.vertical, children: [ _buildSectionHeader( - AppLocalizations.of(context)!.banner_notification), + AppLocalizations.of(context)!.banner_notification,), for (var alert in bannerAlerts) _buildBannerAlert(alert), _buildSectionHeader( - AppLocalizations.of(context)!.feature_notifications), + AppLocalizations.of(context)!.feature_notifications,), for (var notification in featureNotifications) _buildFeatureNotification(notification), _buildSectionHeader( - AppLocalizations.of(context)!.recent_uploads), + AppLocalizations.of(context)!.recent_uploads,), for (var notification in pushNotifications) _buildPushNotification(notification), ], @@ -77,7 +77,7 @@ class NotificationsScreen extends ConsumerWidget { Expanded( child: Center( child: Text(AppLocalizations.of(context)! - .no_notifications_found)), + .no_notifications_found,),), ), ], ), diff --git a/lib/views/settings_view/edit_profile_screen_view.dart b/lib/views/settings_view/edit_profile_screen_view.dart index 4d470b5..de2e6a0 100644 --- a/lib/views/settings_view/edit_profile_screen_view.dart +++ b/lib/views/settings_view/edit_profile_screen_view.dart @@ -154,7 +154,7 @@ class EditProfileScreenState extends ConsumerState { title: const Text("Error"), content: Text(errorMessage == '3 months' ? AppLocalizations.of(context)!.name_change_limitation - : errorMessage), + : errorMessage,), actions: [ TextButton( child: const Text("OK"), diff --git a/lib/views/settings_view/settings_screen_view.dart b/lib/views/settings_view/settings_screen_view.dart index 2735280..9abaf9c 100644 --- a/lib/views/settings_view/settings_screen_view.dart +++ b/lib/views/settings_view/settings_screen_view.dart @@ -48,7 +48,7 @@ class _SettingsScreenState extends ConsumerState { _buildProfileTile(userState), const Divider(), _buildSectionTitle( - AppLocalizations.of(context)!.account_settings), + AppLocalizations.of(context)!.account_settings,), _buildEditableListTile(AppLocalizations.of(context)!.edit_profile, () async { bool isAuthenticated = @@ -90,7 +90,7 @@ class _SettingsScreenState extends ConsumerState { const Divider(), _buildSectionTitle(AppLocalizations.of(context)!.more), _buildNavigableListTile( - AppLocalizations.of(context)!.about_us, ""), + AppLocalizations.of(context)!.about_us, "",), _buildNavigableListTile( AppLocalizations.of(context)!.privacy_policy, "https://live.rbg.tum.de/privacy", diff --git a/lib/views/video_view/offline_video_player/offline_video_player.dart b/lib/views/video_view/offline_video_player/offline_video_player.dart index efb00b3..4af969e 100644 --- a/lib/views/video_view/offline_video_player/offline_video_player.dart +++ b/lib/views/video_view/offline_video_player/offline_video_player.dart @@ -79,7 +79,7 @@ class OfflineVideoPlayerPageState // Initialize the controller manager. void _initializeControllerManager() { _controllerManager = OfflineVideoPlayerControllerManager( - localPath: widget.videoDetails.filePath); + localPath: widget.videoDetails.filePath,); } // Initialize the video player and seek to the last progress. diff --git a/lib/views/video_view/utils/download_service.dart b/lib/views/video_view/utils/download_service.dart index 83c2c9c..2dfbca5 100644 --- a/lib/views/video_view/utils/download_service.dart +++ b/lib/views/video_view/utils/download_service.dart @@ -29,7 +29,7 @@ class DownloadService { }); Future downloadVideo( - Stream stream, String type, String streamName, String streamDate) async { + Stream stream, String type, String streamName, String streamDate,) async { bool canDownload = await _handleDownloadConnectivity(stream, type); if (!canDownload) return; @@ -56,7 +56,7 @@ class DownloadService { if (!isWidgetMounted()) return; onShowSnackBar(localPath.isNotEmpty ? downloadCompletedMessage - : downloadFailedMessage); + : downloadFailedMessage,); }); }