FLUTTER ECOSYSTEM

Raincal/blurhash

이미지용 자리 표시자의 압축 표현입니다.

블러해시 프로젝트 이미지
Stars
13
Forks
19
최근 푸시(UTC)
2025. 2. 19.
프로젝트 상태
활성
Raincal GitHub avatar
언어KotlinDartSwiftRubyHTMLObjective-C

기술 주제

이 저장소가 배포한 패키지

사용 중인 의존성

의존성 목록 8 개
  • flutter{"sdk":"flutter"}
  • flutter_web_plugins{"sdk":"flutter"}
  • web^1.0.0
  • plugin_platform_interface^2.0.2
  • blurhash_dart^1.2.0
  • image^4.0.0
  • flutter_test개발 의존성{"sdk":"flutter"}
  • flutter_lints개발 의존성^5.0.0

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

README 펼치기 / 접기

blurhash

pub package

Compact representation of a placeholder for an image.

Platform Support
Android iOS Web
✔️ ✔️ ✔️
https://raw.githubusercontent.com/Raincal/blurhash/master/blurhash.png

Usage

To use this plugin, add blurhash as a dependency in your pubspec.yaml file.

Example
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);
  }
}