meld_flutter

pub package CI MIT license

Native Flutter rendering for Meld. MeldIcon paints normalized geometry through a precise CustomPainter repaint boundary, while MeldIconController provides interruptible spring motion, scrubbing, pause/resume, reverse playback, and sequences.

Install

dependencies:
  meld_flutter: ^1.0.0
import 'package:meld_flutter/meld_flutter.dart';

const from = PathDataSource('M3 6H21M3 12H21M3 18H21');
const to = PathDataSource('M5 5L19 19M19 5L5 19');
final controller = MeldIconController(initialSource: from);

// Put the controller in a MeldIcon, then call:
await controller.morphTo(to, preset: SpringPreset.snappy);
// In-flight motion reverses in place; settled endpoints play from the other side.
await controller.reverse();

The widget supports declarative, controlled-progress, and command-driven modes; MeldIconTheme supplies shared paint tokens; MeldPaintStyle supports explicit outlines, source-faithful original rendering, and combined fill-plus-outline rendering; and MeldMotionMode.user follows Flutter reduced-motion settings. Add a label for semantics or set excludeFromSemantics for decorative icons.

Libraries

meld_flutter