v1.2.0blurhash
Uma representação muito compacta de um espaço reservado para uma imagem.
79Curtidas 2,3 milDownloads em 30 dias150Pontos Pub
AndroidiOSWeb
Representação compacta de um espaço reservado para uma imagem.
Texto original em inglês. Visite o GitHub para a versão atual.
Compact representation of a placeholder for an image.
| Android | iOS | Web |
|---|---|---|
| ✔️ | ✔️ | ✔️ |
To use this plugin, add blurhash as a dependency in your pubspec.yaml file.
void blurHashEncode() async {
ByteData bytes = await rootBundle.load("image.jpg");
Uint8List pixels = bytes.buffer.asUint8List();
var blurHash = await BlurHash.encode(pixels, 4, 3);
}
void blurHashDecode() async {
Uint8List? imageDataBytes;
try {
imageDataBytes = await BlurHash.decode(blurhash, 20, 12);
} on PlatformException catch (e) {
throw Exception(e.message);
}
}
Lista de dependências 8 itens
{"sdk":"flutter"}{"sdk":"flutter"}^1.0.0^2.0.2^1.2.0^4.0.0{"sdk":"flutter"}^5.0.0Filtre pelo caso de uso, compare a atividade e confira o projeto original antes de adotá-lo.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗