fix warnings

This commit is contained in:
edde746
2026-02-03 02:16:04 +01:00
parent c93dc0bade
commit 87fa2d765b
3 changed files with 3 additions and 3 deletions
-1
View File
@@ -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';
+2 -1
View File
@@ -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;
}
+1 -1
View File
@@ -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>[BoxShadow(color: Colors.black.withOpacity(0.3), offset: const Offset(0.0, 1.0))],
boxShadow: <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)),
);