diff --git a/packages/devtools_app_shared/CHANGELOG.md b/packages/devtools_app_shared/CHANGELOG.md index 305f68bcca1..0cd81ce3fa5 100644 --- a/packages/devtools_app_shared/CHANGELOG.md +++ b/packages/devtools_app_shared/CHANGELOG.md @@ -6,6 +6,7 @@ * Remove public getters `onIsolateCreated` and `onIsolateExited` from `IsolateManager`. * Remove public getter `firstFrameReceived` from `ServiceExtensionManager`. * Add `RoundedButtonGroup` common widget. +* Move from `dart:html` to `package:web`. ## 0.0.6 * Add `profilePlatformChannels` to known service extensions. diff --git a/packages/devtools_app_shared/lib/src/ui/theme/_ide_theme_web.dart b/packages/devtools_app_shared/lib/src/ui/theme/_ide_theme_web.dart index 3e143d6e93e..48aa88a2893 100644 --- a/packages/devtools_app_shared/lib/src/ui/theme/_ide_theme_web.dart +++ b/packages/devtools_app_shared/lib/src/ui/theme/_ide_theme_web.dart @@ -2,11 +2,9 @@ // Use of this source code is governed by a BSD-style license that can be found // in the LICENSE file. -// ignore: avoid_web_libraries_in_flutter, as designed -import 'dart:html'; - import 'package:flutter/widgets.dart'; import 'package:logging/logging.dart'; +import 'package:web/helpers.dart'; import '../../utils/url/url.dart'; import '../../utils/utils.dart'; diff --git a/packages/devtools_app_shared/pubspec.yaml b/packages/devtools_app_shared/pubspec.yaml index 7da974a7ad6..9ca7d2f940d 100644 --- a/packages/devtools_app_shared/pubspec.yaml +++ b/packages/devtools_app_shared/pubspec.yaml @@ -16,6 +16,7 @@ dependencies: meta: ^1.9.1 pointer_interceptor: ^0.9.3+3 vm_service: ^12.0.0 + web: ^0.3.0 dev_dependencies: flutter_lints: ^2.0.3