srawlins / timezone

Time zone database and time zone aware DateTime object for Dart.
BSD 2-Clause "Simplified" License
102 stars 53 forks source link

Runtime error after using timezone package #131

Closed Baldur008 closed 2 years ago

Baldur008 commented 2 years ago

I'm using the version 0.8.0 and it is showing me this error,,,

/[C:/flutter/.pub-cache/hosted/pub.dartlang.org/timezone-0.8.0/lib/browser.dart:16:8](): Error: Not found: 'dart:html' import 'dart:html'; ^

/[C:/flutter/.pub-cache/hosted/pub.dartlang.org/timezone-0.8.0/lib/browser.dart:47:10](): Error: Undefined name 'HttpRequest'. return HttpRequest.request(path, ^^^^^^^^^^^

srawlins commented 2 years ago

Sorry for the delay in responding. Questions like this, how to use the package, are better asked in a large programming forum like StackOverflow, where more people can look at the question, more people than just myself.

If you choose to post to stack overflow, be sure to include the code which imports browser.dart, and indicate where you are running the code.