time_machine icon indicating copy to clipboard operation
time_machine copied to clipboard

web issues

Open CripyIce opened this issue 4 years ago • 1 comments

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!

CripyIce avatar Sep 22 '20 18:09 CripyIce

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

IoanaAlexandru avatar Oct 17 '20 12:10 IoanaAlexandru