Skip to content

maks/image_fade

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ImageFade

Requires Flutter 1.6.7 or higher.

A widget for Flutter that displays a placeholder widget while a specified image loads, then cross-fades to the loaded image. Also handles progress and errors.

If image is changed, it will cross-fade to the new image once it is finished loading. Setting image to null will cross-fade back to the placeholder.

example image

You can set fadeDuration and fadeCurve, as well as most Image properties: width, height, fit, alignment, repeat, matchTextDirection, excludeFromSemantics and semanticLabel.

You can also specify a loadingBuilder that will display load progress any time a new image is loaded, and an errorBuilder that will display if an error occurs while loading an image.

Example

See the example directory for a simple example.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dart 92.0%
  • Objective-C 5.3%
  • Java 2.7%