../../../../.pub-cache/hosted/pub.dev/gif-2.2.0/lib/gif.dart:348:51: Error: The method 'instantiateImageCodec' isn't defined for the class 'PaintingBinding'.
- 'PaintingBinding' is from 'package:flutter/src/painting/binding.dart' ('../../../flutter/packages/flutter/lib/src/painting/binding.dart').
Try correcting the name to the name of an existing method, or defining a method named 'instantiateImageCodec'.
Codec codec = await PaintingBinding.instance!.instantiateImageCodec(bytes);
I have ensured that I am using the latest versions of both Flutter and the gif package. However, I am still encountering this issue. Could you please provide guidance on how to resolve this error? If the method instantiateImageCodec has been deprecated or removed, I would appreciate information on alternative methods or any necessary code changes.
../../../../.pub-cache/hosted/pub.dev/gif-2.2.0/lib/gif.dart:348:51: Error: The method 'instantiateImageCodec' isn't defined for the class 'PaintingBinding'.
Try correcting the name to the name of an existing method, or defining a method named 'instantiateImageCodec'.
Codec codec = await PaintingBinding.instance!.instantiateImageCodec(bytes);
I have ensured that I am using the latest versions of both Flutter and the gif package. However, I am still encountering this issue. Could you please provide guidance on how to resolve this error? If the method instantiateImageCodec has been deprecated or removed, I would appreciate information on alternative methods or any necessary code changes.