dart-lang / dart-lang/http

Conditional platform imports

Open
#1,601 3 comments 3 reactions 0 assignees View on GitHub
package:web_socket_channel
Dominant language
Dart
Stars
1.1k
Forks
419
Avg merge
4d 14h
Merged PRs (30d)
8

Description

The current package doesn't work with Flutter Web and I get the following error :

```shell
transitive libraries have sdk dependencies that not supported on this platform:

web_socket_channel|lib/io.dart
```

Conditional imports (like implemented in the [http's client](https://github.com/dart-lang/http/blob/7774121a406fedb0502fce7cc224476c1ac78469/lib/src/client.dart#L12)) would fix the error I guess.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.