Skip to content

Commit

Permalink
update: insta downlod oninit initied and dispose
Browse files Browse the repository at this point in the history
  • Loading branch information
gopi2401 committed Oct 5, 2024
1 parent 107b565 commit ca6296c
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion lib/services/insta_download.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,19 @@ import 'file_download.dart';
class InstaDownloadController extends GetxController {
// Initialize the WebViewController
// final WebViewController webViewController = WebViewController();
final FileDownload downloadController = Get.put(FileDownload());
late FileDownload downloadController;

@override
void onInit() {
super.onInit();
downloadController = Get.put(FileDownload());
}

@override
void dispose() {
downloadController.dispose();
super.dispose();
}

// Downloads media from the provided link
Future<void> downloadReal(String link) async {
Expand Down

0 comments on commit ca6296c

Please sign in to comment.