blackmann / story_view

Story view for apps with stories.
BSD 3-Clause "New" or "Revised" License
402 stars 327 forks source link

Fix "The method 'instantiateImageCodec' isn't defined for the type 'PaintingBinding'" #166

Closed dmiedev closed 7 months ago

dmiedev commented 7 months ago

Fixes "The method 'instantiateImageCodec' isn't defined for the type 'PaintingBinding'."

See it failing on pub.dev: https://pub.dev/packages/story_view/score

dmiedev commented 7 months ago

Hey @blackmann, your library is failing on pub.dev, so here is a fix.

hwebservices commented 7 months ago

Same issue here:

error: ../../../../../.pub-cache/hosted/pub.dev/story_view-0.15.0/lib/widgets/story_image.dart:49:35: Error: The method 'instantiateImageCodec' isn't defined for the class 'PaintingBinding'.

alfaruqrizqi18 commented 7 months ago

facing this issue in latest flutter version (3.16.0)

dmiedev commented 7 months ago

Sorry it was a mistake Can you revert that?

blackmann commented 7 months ago

The changes are on your fork/branch. I can't edit it; Github permission.

When you have the time, can you please push an update? @dmiedev

dmiedev commented 7 months ago

@blackmann done