fix warnings
This commit is contained in:
@@ -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';
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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)),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user