mirror of
https://github.com/haorendashu/nowser.git
synced 2025-12-17 18:04:18 +01:00
download some codes
This commit is contained in:
@@ -7,6 +7,7 @@ import 'package:flutter_inappwebview/flutter_inappwebview.dart';
|
||||
import 'package:nostr_sdk/event.dart';
|
||||
import 'package:nostr_sdk/utils/platform_util.dart';
|
||||
import 'package:nostr_sdk/utils/string_util.dart';
|
||||
import 'package:nowser/component/download_task_dialog.dart';
|
||||
import 'package:nowser/component/webview/long_press_dialog.dart';
|
||||
import 'package:nowser/component/webview/web_info.dart';
|
||||
import 'package:nowser/const/app_type.dart';
|
||||
@@ -224,6 +225,11 @@ class _WebViewComponent extends State<WebViewComponent>
|
||||
}
|
||||
}
|
||||
},
|
||||
onDownloadStartRequest: (InAppWebViewController controller,
|
||||
DownloadStartRequest downloadStartRequest) {
|
||||
String downloadUrl = downloadStartRequest.url.path;
|
||||
DownloadTaskDialog.show(context, downloadUrl);
|
||||
},
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user