hashed_image library
A Flutter widget that displays a network image with an organic BlurHash placeholder that dissolves away once the real image has loaded.
Quick start
import 'package:hashed_image/hashed_image.dart';
ImageWithHash(
imageUrl: 'https://example.com/photo.jpg',
imageHash: 'LEHV6nWB2yk8pyo0adR*.7kCMdnj',
)
Managing animations in lists
When you rebuild a list (e.g. pull-to-refresh), call DecayPermits.reset first so queued animations don't fire on stale widgets:
void _onRefresh() {
DecayPermits.reset();
setState(() => _items = fetchNewItems());
}
Classes
- DecayPermits
- Process-global limiter on concurrent blur-decay animations.
- ImageWithHash
- A network image widget that shows a BlurHash placeholder while the real image loads, then dissolves the placeholder away using an organic blob-decay animation.