Skip to content

Commit

Permalink
Use package:web to get HttpStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
aran committed Dec 16, 2024
1 parent 6676c20 commit 1f40f71
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/src/shared/io_bits/io_bits.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
// See the License for the specific language governing permissions and
// limitations under the License.

export 'io_bits_io.dart' if (dart.library.html) 'io_bits_web.dart';
export 'io_bits_io.dart' if (dart.library.js_interop) 'io_bits_web.dart';
2 changes: 1 addition & 1 deletion lib/src/shared/io_bits/io_bits_web.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

export 'dart:html' show HttpStatus;
export 'package:web/web.dart' show HttpStatus;

/// Unavailable on the web
class InternetAddress {}
Expand Down
1 change: 1 addition & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ dependencies:
http2: ^2.2.0
protobuf: '>=2.0.0 <4.0.0'
clock: ^1.1.1
web: ^1.1.0

dev_dependencies:
build_runner: ^2.0.0
Expand Down

0 comments on commit 1f40f71

Please sign in to comment.