Skip to content

Commit db505b0

Browse files
committed
app_shared: migrate to pkg:web
1 parent d2f59cf commit db505b0

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

packages/devtools_app_shared/lib/src/ui/theme/_ide_theme_web.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22
// Use of this source code is governed by a BSD-style license that can be found
33
// in the LICENSE file.
44

5-
// ignore: avoid_web_libraries_in_flutter, as designed
6-
import 'dart:html';
7-
85
import 'package:flutter/widgets.dart';
96
import 'package:logging/logging.dart';
7+
import 'package:web/helpers.dart';
108

119
import '../../utils/url/url.dart';
1210
import '../../utils/utils.dart';

packages/devtools_app_shared/lib/src/utils/url/_url_web.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
// Use of this source code is governed by a BSD-style license that can be found
33
// in the LICENSE file.
44

5-
// ignore: avoid_web_libraries_in_flutter, as designed
6-
import 'dart:html';
5+
import 'package:web/helpers.dart';
76

87
Map<String, String> loadQueryParams({String Function(String)? urlModifier}) {
98
var url = getWebUrl()!;

packages/devtools_app_shared/pubspec.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ dependencies:
1616
meta: ^1.9.1
1717
pointer_interceptor: ^0.9.3+3
1818
vm_service: ^12.0.0
19+
web: ^0.3.0
1920

2021
dev_dependencies:
2122
flutter_lints: ^2.0.3

0 commit comments

Comments
 (0)