maddyb99 / shimmer_animation

This shimmer animation widget can help you bring simple yet beautiful skeleton loaders to your flutter app with ease.
https://pub.dev/packages/shimmer_animation
MIT License
38 stars 14 forks source link

Not working in web #7

Closed gouravd closed 4 years ago

gouravd commented 4 years ago

════════ Exception caught by scheduler library ═════════════════════════════════ UnimplementedError ═════════════════════════════════

maddyb99 commented 4 years ago

Could you please post the complete error or the screenshot of the complete error here? I would look into it soon!

maddyb99 commented 4 years ago

Could you please confirm if you are facing the same issue with this patch? @gouravd

gouravd commented 4 years ago

Thanks for the update @maddyb99 .

I tried this on web and found that it works only once.. basically the shimmer effect works only once..here's the log.. hope its helpful

════════ Exception caught by scheduler library ═════════════════════════════════ The following DomException object was thrown during a scheduler callback: IndexSizeError: Failed to execute 'addColorStop' on 'CanvasGradient': The provided value (1.00478) is outside the range (0.0, 1.0).

When the exception was thrown, this was the stack dart:sdk_internal 149477:18 createPaintStyle dart:sdk_internal 135726:39 setUpPaint dart:sdk_internal 134205:40 [_setUpPaint] dart:sdk_internal 134296:24 drawPath dart:sdk_internal 155037:14 apply ... ════════════════════════════════════════════════════════════════════════════════

maddyb99 commented 4 years ago

I have fixed this issue in 3429ab6 and I will push it to Pub soon. Please try cloning this and verify that your issue has been resolved so that we are good to go 🚀 Thanks for bringing up this issue 🙏

gouravd commented 4 years ago

Thanks, I tried the fix and its working as expected

maddyb99 commented 4 years ago

Uploaded to pub just now🚀

gouravd commented 4 years ago

Something's odd.. the cloned code is working but 0.0.6 is showing same error

maddyb99 commented 4 years ago

Try using ^0.0.7 This will work!

Re-open the issue if it still doesn't work, but I'm pretty sure it will!