Skip to content
This repository has been archived by the owner on Jul 6, 2020. It is now read-only.

Overflow on channel when used with flutter web #144

Closed
fatimahossny opened this issue Feb 1, 2020 · 6 comments
Closed

Overflow on channel when used with flutter web #144

fatimahossny opened this issue Feb 1, 2020 · 6 comments

Comments

@fatimahossny
Copy link

I am trying to use this plugin with flutter web , it works fine without useDiskCache .
when I use useDiskCache with true it shows just circular loading with error in console of chrome

Overflow on channel: plugins.flutter.io/path_provider. Messages on this channel are being discarded in FIFO fashion. The engine may not be running or you need to adjust the buffer size if of the channel.

I used this code to save images before loading

  void initState() {
    super.initState();
    Future.delayed(Duration(seconds: 2), () async {
      for (int i = 0; i < images.length; i++) {
        precacheImage(
            AdvancedNetworkImage(
              images[i].url,
              useDiskCache: true,
              fallbackAssetImage: dummyUrl,
              cacheRule: CacheRule(
                storeDirectory: StoreDirectoryType.temporary,
                maxAge: const Duration(days: 7),
              ),
            ),
            context);
      }
    });
  }

and used TransitionToImage the same as example with useDiskCache: true,

am I missing anything ?
any help regarding this is very appreciated

@mchome
Copy link
Owner

mchome commented Feb 2, 2020

path_provider did not support flutter web atm, see flutter/flutter#45296.
Browsers have their own cache, I'll make a web solution.

@fatimahossny
Copy link
Author

@mchome , I appreciate that , thanks

@mrjumpy
Copy link

mrjumpy commented Feb 11, 2020

same here +1

@mchome
Copy link
Owner

mchome commented Feb 11, 2020

Hey guys, you can try v0.7.0.

Currently it works like the default NetworkImage, flutter just replace it with <img> tag, they should use custom decode with <canvas> tag in future release.

@mchome mchome closed this as completed Feb 12, 2020
@b-cancel
Copy link

@mchome are you using the browser's cache now when using flutter web?

@mchome
Copy link
Owner

mchome commented May 24, 2020

@mchome are you using the browser's cache now when using flutter web?

Yes.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants