flutter_cached_network_image icon indicating copy to clipboard operation
flutter_cached_network_image copied to clipboard

Replace custom MultiImageStreamCompleter with flutter/foundation/MultiFrameImageStreamCompleter

Open lwj1994 opened this issue 1 year ago • 2 comments

on 3.19,it will lead some ios crash

fix https://github.com/flutter/flutter/issues/148927

There is no need to use Stram, as it will only fire once.

when result is FileInfo, it means download success.

      await for (final result in stream) {
        if (result is DownloadProgress) {
          chunkEvents.add(
            ImageChunkEvent(
              cumulativeBytesLoaded: result.downloaded,
              expectedTotalBytes: result.totalSize,
            ),
          );
        }
        if (result is FileInfo) {
          final file = result.file;
          final bytes = await file.readAsBytes();
          final decoded = await decode(bytes);
          yield decoded;
        }
      }

lwj1994 avatar May 29 '24 03:05 lwj1994

@lwj1994 Can you provide more info on this and rebase and fix issues?

martijn00 avatar Jul 31 '24 18:07 martijn00

Can you provide more info on this and rebase and fix issues?

@martijn00 hi. The basic information is as described above. I received feedback from online users about the app crashing. The app crashes after scrolling for a while in a dual-column image list. This branch has been live for a month now and has been stable with no crash until now.

lwj1994 avatar Aug 01 '24 12:08 lwj1994