Humation Flutter

Installation

Add Humation Flutter to your app.

Flutter app

Add the widget package:

flutter pub add humation_flutter

humation_flutter on pub.dev.

That is everything. It bundles the default artwork pack (86 parts), so there is nothing else to download or configure.

Import it:

import 'package:humation_flutter/humation_flutter.dart';

Dart only, no Flutter

To generate avatars as SVG strings on a server or in a CLI, add the engine and an artwork pack instead:

dart pub add humation humation_assets_humation_1

humation and humation_assets_humation_1 on pub.dev.

See Packages for how the three packages fit together.

Prewarm (optional)

The artwork decodes once, the first time you show an avatar. Move that work off the first frame by calling prewarm in main:

void main() {
  Humation.prewarm();
  runApp(const MyApp());
}