Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

web issues #40

Open
CripyIce opened this issue Sep 22, 2020 · 1 comment
Open

web issues #40

CripyIce opened this issue Sep 22, 2020 · 1 comment

Comments

@CripyIce
Copy link

Hi there,
Trying to use this library with flutter web but I have some issues with it:
time_machine1

  1. 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.
  2. 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:
image

Thanks for the help!

@IoanaAlexandru
Copy link

This issue is a duplicate of #25. The temporary fix is to manually include the time_machine data files in the build files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants