Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributemath_parser

Parse and evaluate mathematical expressions in Dart.

pub.devRemove
petitparser

Build fast, composable, and type-safe grammars and parsers in plain Dart code.

pub.devRemove
ScoresHealth5293 (best)
Maintenance687 (best)
Quality100100
Popularity3997 (best)
Community4680 (best)
Compatibility100100
UsageDownloads (30 days)9.8k18M (best)
Likes13403 (best)
Pub points160 / 160160 / 160
GitHub stars6490 (best)
MaintenanceLatest release1.5.2, 2 years ago7.1.0, 8 weeks ago (best)
Major versions in 12 months00
Contributors218 (best)
Publishersominemo.comlukas-renggli.ch
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationNoNo
Direct dependencies0 (best)2
LicenseMITMIT
Setup effortLowLow
JudgementStrengths
  • No external native dependencies, works on all Flutter platforms
  • Supports custom variables, functions, and definite integrals
  • Clear API with documented node tree
  • Fully type-safe using modern Dart features and records.
  • Highly composable with a rich set of combinators and builders.
  • No external code generators required.
  • Built-in tools for debugging and viewing execution trees.
Weaknesses
  • Limited to simple math; no symbolic manipulation or advanced calculus
  • Parsing errors can be verbose and may require manual handling
  • Steeper learning curve for developers unfamiliar with parser combinators.
  • May be overkill for trivial string manipulation tasks.
WarningsNoneNone
math_parser vs petitparser: which Flutter package should you use? | pubscout