From fa6c4e3ab3e1d1749c8e76a815d32bbc5f69951b Mon Sep 17 00:00:00 2001 From: Amol Pardeshi <81504884+AmolPardeshi99@users.noreply.github.com> Date: Tue, 24 Jan 2023 11:57:25 +0530 Subject: [PATCH] Update downloader_utils.dart "flutter 'VoidCallback' not found. final VoidCallback onDone" getting this error because the dart:ui package has not been introduced. Add the following code to the downloader_utils.dart file and it will run successfully. --- lib/src/utils/downloader_utils.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/src/utils/downloader_utils.dart b/lib/src/utils/downloader_utils.dart index ab57dd9..382bd76 100644 --- a/lib/src/utils/downloader_utils.dart +++ b/lib/src/utils/downloader_utils.dart @@ -1,4 +1,5 @@ import 'dart:io'; +import 'dart:ui'; import 'package:dio/dio.dart' hide ProgressCallback; import 'package:flowder/src/flowder.dart';