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.
image is changed, it will cross-fade to the new image once it is finished loading. Setting
null will cross-fade back to the placeholder.
You can set
fadeCurve, as well as most
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.
See the example directory for a simple example.
- Foreign Function Interface for interoperability with the C programming language. [...]
- HTML elements and other resources for web-based applications that need to interact with the browser and the DOM (Document Object Model). [...]
- Utility methods to efficiently manipulate typed JSInterop objects in cases where the name to call is not known at runtime. You should only use these methods when the same effect cannot be achieved with @JS annotations. These methods would be extension methods on JSObject if Dart supported extension methods.