thitlwincoder / direct_link

Direct link extractor from URL to stream and download directly
https://pub.dev/packages/direct_link
MIT License
25 stars 21 forks source link

Failed to run web project #22

Open MaherSafadii opened 2 months ago

MaherSafadii commented 2 months ago

when I run on web I get this error: `Launching lib/main.dart on Chrome in debug mode... ../../.pub-cache/hosted/pub.dev/easy_downloader-0.0.30/lib/src/data/locale_storage/storage_model/download_task.g.dart:18:8: Error: The integer literal 8326932930248620171 can't be represented exactly in JavaScript. Try changing the literal to something that can be represented in JavaScript. In JavaScript 8326932930248620032 is the nearest value that can be represented exactly. id: -8326932930248620171, ^^^^^^^^^^^^^^^^^^^ ../../.pub-cache/hosted/pub.dev/easy_downloader-0.0.30/lib/src/data/locale_storage/storage_model/download_task.g.dart:1775:8: Error: The integer literal 5345222825337418332 can't be represented exactly in JavaScript. Try changing the literal to something that can be represented in JavaScript. In JavaScript 5345222825337418752 is the nearest value that can be represented exactly. id: -5345222825337418332, ^^^^^^^^^^^^^^^^^^^ ../../.pub-cache/hosted/pub.dev/easy_downloader-0.0.30/lib/src/data/locale_storage/storage_model/isar_map_entity.g.dart:14:7: Error: The integer literal 767895122018648828 can't be represented exactly in JavaScript. Try changing the literal to something that can be represented in JavaScript. In JavaScript 767895122018648832 is the nearest value that can be represented exactly. id: 767895122018648828, ^^^^^^^^^^^^^^^^^^ ../../.pub-cache/hosted/pub.dev/easy_downloader-0.0.30/lib/src/data/locale_storage/shared_prefs_isar/pref_isar.g.dart:19:7: Error: The integer literal 4145061868552879397 can't be represented exactly in JavaScript. Try changing the literal to something that can be represented in JavaScript. In JavaScript 4145061868552879616 is the nearest value that can be represented exactly. id: 4145061868552879397, ^^^^^^^^^^^^^^^^^^^ ../../.pub-cache/hosted/pub.dev/easy_downloader-0.0.30/lib/src/data/locale_storage/shared_prefs_isar/pref_isar.g.dart:39:12: Error: The integer literal 4906094122524121629 can't be represented exactly in JavaScript. Try changing the literal to something that can be represented in JavaScript. In JavaScript 4906094122524122112 is the nearest value that can be represented exactly. id: -4906094122524121629, ^^^^^^^^^^^^^^^^^^^ ../../.pub-cache/hosted/pub.dev/easy_downloader-0.0.30/lib/src/data/locale_storage/shared_prefs_isar/pref_isar.g.dart:690:7: Error: The integer literal 3712506264493791008 can't be represented exactly in JavaScript. Try changing the literal to something that can be represented in JavaScript. In JavaScript 3712506264493791232 is the nearest value that can be represented exactly. id: 3712506264493791008, ^^^^^^^^^^^^^^^^^^^ ../../.pub-cache/hosted/pub.dev/easy_downloader-0.0.30/lib/src/data/locale_storage/shared_prefs_isar/pref_isar.g.dart:710:12: Error: The integer literal 4906094122524121629 can't be represented exactly in JavaScript. Try changing the literal to something that can be represented in JavaScript. In JavaScript 4906094122524122112 is the nearest value that can be represented exactly. id: -4906094122524121629, ^^^^^^^^^^^^^^^^^^^ ../../.pub-cache/hosted/pub.dev/easy_downloader-0.0.30/lib/src/data/locale_storage/shared_prefs_isar/pref_isar.g.dart:1358:7: Error: The integer literal 914538845454150995 can't be represented exactly in JavaScript. Try changing the literal to something that can be represented in JavaScript. In JavaScript 914538845454151040 is the nearest value that can be represented exactly. id: 914538845454150995, ^^^^^^^^^^^^^^^^^^ ../../.pub-cache/hosted/pub.dev/easy_downloader-0.0.30/lib/src/data/locale_storage/shared_prefs_isar/pref_isar.g.dart:1378:12: Error: The integer literal 4906094122524121629 can't be represented exactly in JavaScript. Try changing the literal to something that can be represented in JavaScript. In JavaScript 4906094122524122112 is the nearest value that can be represented exactly. id: -4906094122524121629, ^^^^^^^^^^^^^^^^^^^ Failed to compile application.

Exited (1). `

thitlwincoder commented 2 months ago

Hello @MaherSafadii. It's because easy_downloader is not supported on the web. Would you happen to have any recommended package for this?

MaherSafadii commented 2 months ago

Hello @MaherSafadii. It's because easy_downloader is not supported on the web. Would you happen to have any recommended package for this?

I found this package that has a working demo site: downloadlogos , also while the package still doesn't work on web in its current state, remove the web from the supported platform tags because it may seem misleading as for now.

thitlwincoder commented 2 months ago

@MaherSafadii I update the code for this. Could you try the latest version again? Thanks.