diff --git a/packages/devtools_app/lib/src/shared/config_specific/import_export/_export_web.dart b/packages/devtools_app/lib/src/shared/config_specific/import_export/_export_web.dart index a13ece02586..bf176119336 100644 --- a/packages/devtools_app/lib/src/shared/config_specific/import_export/_export_web.dart +++ b/packages/devtools_app/lib/src/shared/config_specific/import_export/_export_web.dart @@ -23,17 +23,11 @@ class ExportControllerWeb extends ExportController { final element = document.createElement('a') as HTMLAnchorElement; element.setAttribute( 'href', - // TODO(srujzs): This is necessary in order to support package:web 0.4.0. - // This was not needed with 0.3.0, hence the lint. - // ignore: avoid-unnecessary-type-casts - URL.createObjectURL(Blob([content.toJS].toJS) as JSObject), + URL.createObjectURL(Blob([content.toJS].toJS)), ); element.setAttribute('download', fileName); element.style.display = 'none'; - // TODO(srujzs): This is necessary in order to support package:web 0.4.0. - // This was not needed with 0.3.0, hence the lint. - // ignore: avoid-unnecessary-type-casts - (document.body as HTMLBodyElement).append(element as JSAny); + (document.body as HTMLBodyElement).append(element); element.click(); element.remove(); } diff --git a/packages/devtools_app/pubspec.yaml b/packages/devtools_app/pubspec.yaml index eb693131e9f..c665ffd7bdf 100644 --- a/packages/devtools_app/pubspec.yaml +++ b/packages/devtools_app/pubspec.yaml @@ -65,7 +65,7 @@ dependencies: vm_service: ^13.0.0 # TODO https://github.com/dart-lang/sdk/issues/52853 - unpin this version vm_snapshot_analysis: 0.7.2 - web: '>=0.3.0 <0.5.0' + web: ^0.3.0 web_socket_channel: ^2.1.0 # widget_icons: ^0.0.1 diff --git a/packages/devtools_app_shared/pubspec.yaml b/packages/devtools_app_shared/pubspec.yaml index 216c5e3429f..369c67e6bcd 100644 --- a/packages/devtools_app_shared/pubspec.yaml +++ b/packages/devtools_app_shared/pubspec.yaml @@ -16,7 +16,7 @@ dependencies: meta: ^1.9.1 pointer_interceptor: ^0.9.3+3 vm_service: ^13.0.0 - web: '>=0.3.0 <0.5.0' + web: ^0.3.0 dev_dependencies: flutter_lints: ^2.0.3 diff --git a/packages/devtools_extensions/pubspec.yaml b/packages/devtools_extensions/pubspec.yaml index 748460966c6..810d2892b41 100644 --- a/packages/devtools_extensions/pubspec.yaml +++ b/packages/devtools_extensions/pubspec.yaml @@ -21,7 +21,7 @@ dependencies: path: ^1.8.0 logging: ^1.1.1 vm_service: ^13.0.0 - web: '>=0.3.0 <0.5.0' + web: ^0.3.0 dev_dependencies: flutter_driver: