From 87fa2d765b278e4c893a6d6140f311f6b5abe211 Mon Sep 17 00:00:00 2001 From: edde746 <86283021+edde746@users.noreply.github.com> Date: Tue, 3 Feb 2026 02:16:04 +0100 Subject: [PATCH] fix warnings --- lib/utils/plex_image_helper.dart | 1 - lib/widgets/download_tree_view.dart | 3 ++- lib/widgets/hotkey_recorder.dart | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/utils/plex_image_helper.dart b/lib/utils/plex_image_helper.dart index 6bfc93df..082df8a3 100644 --- a/lib/utils/plex_image_helper.dart +++ b/lib/utils/plex_image_helper.dart @@ -1,5 +1,4 @@ import 'dart:math'; -import 'dart:ui'; import 'package:flutter/widgets.dart'; import '../services/plex_client.dart'; import 'plex_url_helper.dart'; diff --git a/lib/widgets/download_tree_view.dart b/lib/widgets/download_tree_view.dart index ff5ede1c..207df2d1 100644 --- a/lib/widgets/download_tree_view.dart +++ b/lib/widgets/download_tree_view.dart @@ -551,8 +551,9 @@ class _DownloadTreeItemState extends State<_DownloadTreeItem> { if ((status == DownloadStatus.downloading || status == DownloadStatus.queued) && widget.onCancel != null) count++; if (status == DownloadStatus.failed && widget.onRetry != null) count++; if ((status == DownloadStatus.completed || status == DownloadStatus.failed || status == DownloadStatus.cancelled) && - widget.onDelete != null) + widget.onDelete != null) { count++; + } return count; } diff --git a/lib/widgets/hotkey_recorder.dart b/lib/widgets/hotkey_recorder.dart index 98607dd4..6c4db656 100644 --- a/lib/widgets/hotkey_recorder.dart +++ b/lib/widgets/hotkey_recorder.dart @@ -87,7 +87,7 @@ class _VirtualKeyView extends StatelessWidget { color: Theme.of(context).canvasColor, border: Border.all(color: Theme.of(context).dividerColor), borderRadius: BorderRadius.circular(3), - boxShadow: [BoxShadow(color: Colors.black.withOpacity(0.3), offset: const Offset(0.0, 1.0))], + boxShadow: [BoxShadow(color: Colors.black.withValues(alpha: 0.3), offset: const Offset(0.0, 1.0))], ), child: Text(keyLabel, style: TextStyle(color: Theme.of(context).textTheme.bodyMedium?.color, fontSize: 12)), );