Skip to content

Commit 2d7ae0c

Browse files
committed
fix: update add web package replacing dart:html
1 parent 898f2ee commit 2d7ae0c

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

lib/_internal/local_storage_web/i_local_storage_web.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import 'dart:html';
1+
import 'package:web/web.dart';
22

33
abstract class ILocalStorageWeb {
44
/// local storage mapping keys

lib/_internal/local_storage_web/local_storage_web.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import 'dart:html';
1+
import 'package:web/web.dart';
22

33
import 'i_local_storage_web.dart';
44

@@ -33,6 +33,6 @@ class LocalStorageWeb extends ILocalStorageWeb {
3333

3434
@override
3535
void removeRegisteredClient(String id) {
36-
_localStorage.remove(id);
36+
_localStorage.removeItem(id);
3737
}
3838
}

pubspec.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ dependencies:
1414
sdk: flutter
1515
plugin_platform_interface: ^2.1.4
1616
js: ^0.7.2
17+
web: ^1.1.0
1718

1819
dev_dependencies:
1920
flutter_lints: ^2.0.2

0 commit comments

Comments
 (0)