Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ugh
  • Loading branch information
kevmoo committed Nov 16, 2023
commit d575456c6212650c01c3d68d214780e34aa5f0ac
2 changes: 1 addition & 1 deletion packages/file_selector/file_selector_web/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ version: 0.9.3

environment:
sdk: ^3.2.0
flutter: ">3.16.0"
flutter: ">=3.16.0"

flutter:
plugin:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class SharedPreferencesPlugin extends SharedPreferencesStorePlatform {
// remove _all_ local data, not just the keys prefixed with
// _prefix
_getFilteredKeys(filter.prefix, allowList: filter.allowList)
.forEach((String i) => html.window.localStorage.removeItem(i));
.forEach(html.window.localStorage.remove);
return true;
}

Expand Down Expand Up @@ -113,6 +113,7 @@ class SharedPreferencesPlugin extends SharedPreferencesStorePlatform {
}

extension on html.Storage {
void remove(String item) => removeItem(item);
Iterable<String> get keys sync* {
for (int i = 0; i < html.window.localStorage.length; i++) {
yield html.window.localStorage.key(i)!;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ version: 2.2.2

environment:
sdk: ^3.2.0
flutter: ">3.16.0"
flutter: ">=3.16.0"

flutter:
plugin:
Expand Down
2 changes: 1 addition & 1 deletion packages/url_launcher/url_launcher_web/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ version: 2.2.1

environment:
sdk: ^3.2.0
flutter: ">3.16.0"
flutter: ">=3.16.0"

flutter:
plugin:
Expand Down