Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributeconditional_builder_null_safety

Widget that shows builder or fallback based on a boolean condition

pub.devRemove
dart_code_viewer2

A Flutter widget to view, theme, and copy Dart code snippets.

pub.devRemove
ScoresHealth3955 (best)
Maintenance06 (best)
Quality7296 (best)
Popularity4048 (best)
Community1163 (best)
Compatibility100100
UsageDownloads (30 days)1.1k7.6k (best)
Likes70 (best)16
Pub points130 / 160150 / 160 (best)
GitHub stars28 (best)
MaintenanceLatest release0.0.6, 5 years ago1.0.3, 2 years ago (best)
Major versions in 12 months00
Contributors25 (best)
PublisherUnverifiedbangkit.dev
FitPlatformsAndroid, iOS, Web, Windows, macOS, LinuxAndroid, iOS, Web, Windows, macOS, Linux
WASM-readyYesYes
KindFlutter widgetsFlutter widgets
Code generationNoNo
Direct dependencies0 (best)1
LicenseUNKNOWNUNLICENSE
Setup effortLowLow
JudgementStrengths
  • Simple API
  • Null safety support
  • Fallback can be omitted
  • Easy to set up with pre-made themes like light, dark, io17, and designDark
  • Supports custom text styling and color parameters per token type
  • Includes a copy button feature out of the box
Weaknesses
  • Very basic, no animation support
  • No documentation on performance or edge cases
  • No support for async conditions
  • Limited to displaying Dart code
  • Requires a Material ancestor and MediaQuery widget in the tree
WarningsNoneNone
conditional_builder_null_safety vs dart_code_viewer2: which Flutter package should you use? | pubscout