mirror of
https://github.com/austinried/subtracks.git
synced 2026-03-28 23:32:42 +01:00
chore: upgrade to Flutter 3.24.5
At the time of writing the latest Flutter version.
This commit is contained in:
@@ -534,7 +534,7 @@ class DownloadService extends _$DownloadService {
|
||||
|
||||
_port.asyncMap((dynamic data) async {
|
||||
final taskId = (data as List<dynamic>)[0] as String;
|
||||
final status = DownloadTaskStatus(data[1] as int);
|
||||
final status = DownloadTaskStatus.fromInt(data[1] as int);
|
||||
final progress = data[2] as int;
|
||||
|
||||
var download = state.downloads.firstWhereOrNull(
|
||||
@@ -579,11 +579,11 @@ class DownloadService extends _$DownloadService {
|
||||
@pragma('vm:entry-point')
|
||||
static void downloadCallback(
|
||||
String id,
|
||||
DownloadTaskStatus status,
|
||||
int status,
|
||||
int progress,
|
||||
) {
|
||||
IsolateNameServer.lookupPortByName('downloader_send_port')?.send(
|
||||
[id, status.value, progress],
|
||||
[id, status, progress],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user