Skip to content

hireflutter-dev/hf-retry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hf_retry

A plugin to enhance user experience during network downtime.

  • Shows placeholder image in place of NetworkImage when the network is unavailable
  • Retries and fetches NetworkImage as soon as the device is connected to the internet

Just use NetworkImageWithRetry in place of NetworkImage

Example

Image(
  image: NetworkImageWithRetry('http://example.com/avatars/123.jpg'),
  errorBuilder: (context, _, __) {
    return FlutterLogo(
      size: 200,
    );
  },
),