This adds support for customizing the Image widget that is being displayed. That includes customizing Image's frameBuilder and loadingBuilder. Rather than providing those callbacks as parameters, it's more versatile to let the user create their own Image widget using their desired configuration.
This is now supported in EasyImageProvider through a new imageWidgetBuilder method. The default implementation shows a loading indicator and does a quick fade-in animation once the image is loaded.
However, it's also possible to just customize the widget that is displayed during loading (a CircularProgressIndicator by default).
By using your own EasyImageProvider subclass this can be fully customized.
Checklist
Please ensure your pull request fulfills the following requirements:
[X] The commit messages follow our guidelines (CONTRIBUTING.md)
[X] Tests for any changes have been added (for bug fixes / features)
[X] Docs have been added / updated (for bug fixes / features)
Type
What kind of change does this pull request introduce?
[ ] Bug fix
[X] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other (please describe below)
Breaking Changes
Does this pull request introduce any breaking changes?
This adds support for customizing the Image widget that is being displayed. That includes customizing Image's
frameBuilder
andloadingBuilder
. Rather than providing those callbacks as parameters, it's more versatile to let the user create their own Image widget using their desired configuration.This is now supported in
EasyImageProvider
through a newimageWidgetBuilder
method. The default implementation shows a loading indicator and does a quick fade-in animation once the image is loaded.However, it's also possible to just customize the widget that is displayed during loading (a
CircularProgressIndicator
by default).By using your own EasyImageProvider subclass this can be fully customized.
Checklist
Please ensure your pull request fulfills the following requirements:
Type
What kind of change does this pull request introduce?
Breaking Changes
Does this pull request introduce any breaking changes?
Other Information
n/a