Search packages, repositories and app categories

Package detailsv0.1.0

flutter_network_image

flutter package that provides an ImageProvider automatically retries failed network image loads, ensuring smooth image loading on mobile and web platforms.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
152
Likes
10
Pub points
130

Install package

flutter pub add flutter_network_image

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A Flutter package that enhances image loading by automatically retrying failed network requests, ensuring reliable image display across mobile and web platforms. It extends the standard ImageProvider to handle transient network issues gracefully, improving user experience during unstable connections. The package is designed for seamless integration with existing Flutter apps and supports all major platforms including Android, iOS, Web, macOS, Windows, and Linux. It simplifies handling of remote images without requiring custom retry logic.

Use cases

  • Loading images from unreliable networks
  • Improving UX during intermittent connectivity
  • Automating retries for failed image downloads
  • Supporting cross-platform image loading
  • Handling temporary server outages

Key features

  • Automatic retry mechanism
  • Cross-platform compatibility
  • Seamless integration with Image widget
  • Handles transient network failures
  • Extends ImageProvider interface

Suitable for

  • Apps with frequent network fluctuations
  • Image-heavy applications
  • Web and mobile apps needing robust image loading
  • Developers seeking minimal setup for image retries
  • Projects targeting multiple platforms

Considerations

  • May increase load time due to retries
  • Requires internet access to function
  • Not suitable for static or local images
  • Limited customization over retry logic
  • Dependent on underlying network stack performance

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

flutter_network_image

flutter_network_image is a flutter package that provides an ImageProvider that automatically retries failed network image loads, ensuring smooth image loading on mobile and web platforms.

Example:

Image(
  image: NetworkImageProvider(
  'https://image.com/avatar.png',
  retryWhen: (Attempt attempt) => attempt.counter < 10,
),

LICENSE

MIT License

Copyright (c) 2023 Abdelouahed Medjoudja

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Categories

Dependencies

Dependency list 1 items

Source repository

Projects using this package

No data available yet.