FLUTTER ECOSYSTEM

Raincal/blurhash

एक छवि के लिए स्थान धरार का संक्षिप्त प्रतिनिधित्व।

ब्लर हैश प्रोजेक्ट कवर
Stars
13
Forks
19
अंतिम पुश (UTC)
19 फ़र॰ 2025
प्रोजेक्ट स्थिति
सक्रिय
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);
  }
}