Git Product home page Git Product logo

disposable_cached_images's People

Contributors

7mada123 avatar hemantbeast avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

disposable_cached_images's Issues

App flickering due to flutter3

Hi,I am sorry to contact you use this issue. But I can't find your email.
And I noticed that you have met the problem when upgraded to flutter3 the app will flickering in this issue: flutter/flutter#111085.
I also have the problem, so I wonder if you have solved the problem. Really appreciate if you can help. Thanks a lot and sorry about this issue.

Using Flutters ImageProvider Logic

I was using cached_network_image and I need to switch for my project, because it is constantly crashing on iOS. The problem with that library was that network requests are never cancelled which is a problem if the user scrolls through a long list of images.

So I started to compare implementations of Image caching libraries. The pros of this library is that it uses isolates and it cancels network requests. Compared to other libraries it comes with one great disadvantage: It does not provide ImageProviders which seems to be the flutter standard when handling images. ImageProviders also use the flutter ImageCache as a in-memory-cache which already works well. It would be really great to get the best of both worlds.

I am thinking about writing a proof of concept.

Android build failed with with an exception

I am getting the follow error when running on Android, it's works fine on IOS and web

/C:/flutter/.pub-cache/hosted/pub.dartlang.org/disposable_cached_images-1.0.9/lib/cache/cache.dart:65:10: Error: Type 'Uint8List' not found.
Future<Uint8List?> getBytes(final String key) async {
^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/disposable_cached_images-1.0.9/lib/cache/cache.dart:74:10: Error: Type 'Uint8List' not found.
Future getLocalBytes(final String imagePath) async {
^^^^^^^^^
3
FAILURE: Build failed with an exception.

  • Where:
    Script 'C:\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1156
  • What went wrong:
    Execution failed for task ':app:compileFlutterBuildDebug'.
    Process 'command 'C:\flutter\bin\flutter.bat'' finished with non-zero exit value 1

Maximum memory cache size

It would be nice to have a maximum cache size and when there are too many images in memory because of keepAlive=true it should remove them. Otherwise we run into out of memory exceptions.

Progress indicator

This package is great but could you add a progress indicator option when loading an image?

How cached file or data are managed ?

It will be nice to have a parameter to set a delay to delete file from.
For example when the file is not use for 24 hours, it would be remove from cache.

Also the package need ProviderScoop to build.

flutter web: Failed to execute 'createObjectStore' on 'IDBDatabase': An object store with the specified name already exists

hi I was using old version ^1.1.2 and after upgrade flutter to latest I updated the library to ^1.2.1 I got follow error for users having caches from old version
await DisposableImages.init(); failed with follow error on console
"ConstraintError: Failed to execute 'createObjectStore' on 'IDBDatabase': An object store with the specified name already exists."

the library working fine for new users or on private session but crash for old users with caches from old version which lead to fail loading images duo
[Log] DisposableCachedImage : unhandled error (main.dart.js, line 42968)
[Log] LateInitializationError: Field 'fileContent' has not been initialized. (main.dart.js, line 42968)
is there quick solution for this problem ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.