Skip to content
pubscout

drafter

0.3.0, released 5 months ago by androidpoet.dev

A zero-dependency charting library with 27 chart types and built-in interactivity.

WASM-ready
$ flutter pub add drafter
Source repository

What it does

Drafter provides 27 different chart types built purely in Flutter using CustomPaint and Canvas. It features smooth Catmull-Rom curves, soft gradient fills, a left-to-right reveal animation, built-in semantics, and an optional interactive layer for tooltips, selection, and ranges.

AI-written summary of version 0.3.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need a wide variety of charts ranging from standard bar and line charts to heatmaps, treemaps, and gantt charts.
  • You want zero external dependencies beyond the Flutter SDK.
  • You need built-in interactivity like touch/mouse tooltips, selection, and range dragging without setting up complex event listeners.

Skip it when

  • You need highly complex enterprise mapping or domain-specific charting features not covered by the 27 included types.
  • You prefer a non-Flutter native rendering engine for performance reasons on extremely large data sets.

Strengths

  • Zero dependencies beyond the Flutter SDK.
  • Supports 27 distinct chart types out of the box.
  • Built-in semantics and screen-reader accessibility.
  • Opt-in interactive tracking, tooltips, and range selection painted efficiently on a canvas overlay.

Weaknesses

  • Relatively new package which may lack long-term ecosystem maturity compared to older giants like fl_chart or syncfusion_flutter_charts.
  • Custom canvas rendering might require extra work if you need deeply customized non-standard UI elements outside the built-in properties.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0

None. Pure Dart package with zero external dependencies.

SizedBox(
  height: 300,
  child: SimpleBarChart(
    bars: const [BarItem('Q1', 24), BarItem('Q2', 38), BarItem('Q3', 30), BarItem('Q4', 46)],
  ),
)

Alternatives

Packages that do the same job and could replace drafter.

  • fl_chart

    Choose it if you want a battle-tested, highly popular community standard for Flutter charts.

  • syncfusion_flutter_charts

    Choose it if you require an enterprise-grade chart library with extensive documentation and complex financial or technical indicators.