refactor: type server identifiers

This commit is contained in:
edde746
2026-06-01 11:06:03 +02:00
parent 7b59dac26b
commit 74b8dc4561
258 changed files with 2296 additions and 2080 deletions
+3 -2
View File
@@ -1,4 +1,5 @@
import 'package:flutter/material.dart';
import '../../media/ids.dart';
import 'package:material_symbols_icons/symbols.dart';
import 'package:provider/provider.dart';
import '../../focus/focusable_action_bar.dart';
@@ -184,7 +185,7 @@ class DownloadsScreenState extends State<DownloadsScreen>
if (!PlatformDetector.shouldUseSideNavigation(context))
Container(
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 8),
alignment: Alignment.centerLeft,
alignment: .centerLeft,
child: SingleChildScrollView(
scrollDirection: Axis.horizontal,
child: Row(
@@ -212,7 +213,7 @@ class DownloadsScreenState extends State<DownloadsScreen>
// (not a [PlexClient]) for both code paths.
getClient(String globalKey) {
final serverId = parseGlobalKey(globalKey)?.serverId ?? globalKey;
return serverProvider.serverManager.getClient(serverId);
return serverProvider.serverManager.getClient(ServerId(serverId));
}
return DownloadTreeView(