v1.2.0blurhash
이미지의 자리 표시자에 대한 매우 컴팩트한 표현입니다.
79좋아요 2.3천30일 다운로드150Pub 점수
AndroidiOSWeb
이미지용 자리 표시자의 압축 표현입니다.
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
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);
}
}
의존성 목록 8 개
{"sdk":"flutter"}{"sdk":"flutter"}^1.0.0^2.0.2^1.2.0^4.0.0{"sdk":"flutter"}^5.0.0사용 목적에 따라 검색하고 개발 활동을 비교한 뒤 원본 저장소에서 요구 사항을 확인하세요.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗