RatelHub / rflutter_alert

RFlutter Alert is super customizable and easy-to-use alert / popup dialog library for Flutter. You may create reusable alert styles or add buttons as much as you want with ease.
https://ratel.com.tr
MIT License
386 stars 117 forks source link

Unable to load asset: packages/rflutter_alert/assets/images/close.png #104

Closed Cyberavater closed 3 years ago

Cyberavater commented 3 years ago
Log: 
======== Exception caught by image resource service ================================================
The following assertion was thrown resolving an image codec:
Unable to load asset: packages/rflutter_alert/assets/images/close.png

When the exception was thrown, this was the stack: 
C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 236:49  throw_
packages/flutter/src/services/asset_bundle.dart 227:55                                                                     load
C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 45:50            <fn>
C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/async/zone.dart 1362:47                                          _rootRunUnary
C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/async/zone.dart 1265:19                                          runUnary
...
Image provider: AssetImage(bundle: null, name: "packages/rflutter_alert/assets/images/close.png")
Image key: AssetBundleImageKey(bundle: PlatformAssetBundle#c6bc4(), name: "packages/rflutter_alert/assets/images/close.png", scale: 1)
====================================================================================================
Cyberavater commented 3 years ago

Hmm, the issue goes away if I add this instead,

dependencies:
 rflutter_alert:
   git: git://github.com/RatelHub/rflutter_alert.git
GzuPark commented 2 years ago

I have the same problem as this and solve the problem like above. Thank you @Cyberavater