time_machine
time_machine copied to clipboard
web issues
Hi there,
Trying to use this library with flutter web
but I have some issues with it:
- I don't have this file anywhere in my project - I've looked in the open issues and saw that other people have those files.
- The get request tries to get the file from the root of the domain instead of the root of the web project which is:
https://mydoamin.com/ironclic/
.
This is my configuration: flutter doctor:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, 1.22.0-12.1.pre, on Mac OS X 10.15.6 19G2021, locale
en-IL)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 12.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.0)
[✓] VS Code (version 1.49.1)
[✓] Connected device (2 available)
pubspec.yaml:
dependencies:
time_machine: ^0.9.13
flutter:
uses-material-design: true
assets:
- assets/images/
- assets/icons/
- assets/icon/
- assets/translations/
- packages/time_machine/data/cultures/cultures.bin
- packages/time_machine/data/tzdb/tzdb.bin
build/web
structure:
Thanks for the help!
This issue is a duplicate of #25. The temporary fix is to manually include the time_machine
data files in the build files.