Viewing version 0.1.2. Open the latest package page.

flutter_blurhash

0.1.2

Compact representation of a placeholder for an image. Encode a blurry image under 30 caracters for instant display like used by Medium

Download archive

Readme

Flutter BlurHash

Compact representation of a placeholder for an image.

Generation

You can use https://blurha.sh/ for testing or use any official api on your server side.

Flutter Code

Constrain your widget render area and let BlurHash fill the pixels

class BlurHashApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) => MaterialApp(
        home: Scaffold(
            appBar: AppBar(
              title: Text("BlurHash"),
            ),
            body: Container(
              width: 800,
              child: AspectRatio(
                  aspectRatio: 1.6, child: BlurHash(hash: "L5H2EC=PM+yV0g-mq.wG9c010J}I")),
            )),
      );

  const BlurHashApp();
}
Changelog

0.1.2

  • Performances and extended list as example

0.1.1

  • Documentation and cleanup

0.1.0

  • Released the decoder and basic widget

Installing

export PUB_HOSTED_URL=https://pub.mirror.p-hatan.ir
flutter pub add 'flutter_blurhash:0.1.2'
pubspec.yaml
name: flutter_blurhash
description: Compact representation of a placeholder for an image. Encode a blurry image under 30 caracters for instant display like used by Medium
version: 0.1.2
homepage: https://github.com/Solido/Flutter-BlurHash
authors:
  - Robert Felker <flutter@robbieone.com>

environment:
  sdk: ">=2.3.0 <3.0.0"

dependencies:
  flutter:
    sdk: flutter

  image: ^2.1.4

dev_dependencies:
  flutter_test:
    sdk: flutter

Version history

VersionPublishedArchiveSHA-256
0.1.0Cached · Upstream SHA-256 matchedDownloadd1abdaba…87110f
0.1.1Cached · Upstream SHA-256 matchedDownload098f93fa…430c48
0.1.2Cached · Upstream SHA-256 matchedDownload271cb270…6ae85e
0.2.0Cached · Upstream SHA-256 matchedDownload01fbfb39…769b39
0.2.0+1Cached · Upstream SHA-256 matchedDownload8dc220c1…43a653
0.2.0+2Cached · Upstream SHA-256 matchedDownloadbea51615…f1ba13
0.2.0+3Cached · Upstream SHA-256 matchedDownload3048c578…a66731
0.2.1Cached · Upstream SHA-256 matchedDownloadef86ce9b…fe8596
0.4.0Cached · Upstream SHA-256 matchedDownload0504357f…52849e
0.4.1Cached · Upstream SHA-256 matchedDownload7870b635…87fca6
0.4.2Cached · Upstream SHA-256 matchedDownloadb3bc4bbd…b78503
0.5.0Cached · Upstream SHA-256 matchedDownload339d896c…8a9230
0.5.2-nullsafety.0Cached · Upstream SHA-256 matchedDownload60d83750…e8a21c
0.5.4-nullsafety.0Cached · Upstream SHA-256 matchedDownload7aad8d0d…20590b
0.6.0Cached · Upstream SHA-256 matchedDownload3525f13a…d1f8c0
0.6.4Cached · Upstream SHA-256 matchedDownload1a4a4973…96a4ed
0.6.6Cached · Upstream SHA-256 matchedDownload933b9e6a…dec0d3
0.6.7Cached · Upstream SHA-256 matchedDownloadeb69353a…2c4d87
0.6.8Cached · Upstream SHA-256 matchedDownload93f1c766…44444d
0.7.0Cached · Upstream SHA-256 matchedDownload05001537…31a5c6
0.8.0Cached · Upstream SHA-256 matchedDownload0592f6ef…ad6bfe
0.8.1Cached · Upstream SHA-256 matchedDownload3af40992…4e5d11
0.8.2Cached · Upstream SHA-256 matchedDownload5e67678e…db0c06
0.9.0Cached · Upstream SHA-256 matchedDownloadd4724671…c2fb39
0.9.1Cached · Upstream SHA-256 matchedDownloade97b9aff…e3d25d

Dependencies

flutter { "sdk": "flutter" }

image "^2.1.4"