Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributehit

Decouple Flutter layout size from hit-test size to deliver taps outside parent bounds.

pub.devRemove
tap_canvas

Detect taps outside the currently defined widget and provide a callback.

pub.devRemove
ScoresHealth68 (best)44
Maintenance55 (best)0
Quality97 (best)96
Popularity56 (best)13
Community4146 (best)
Compatibility100100
UsageDownloads (30 days)4.7k (best)431
Likes54 (best)14
Pub points160 / 160 (best)150 / 160
GitHub stars50 (best)8
MaintenanceLatest release1.2.4, 4 months ago (best)0.9.5, 4 years ago
Major versions in 12 months10 (best)
Contributors12 (best)
Publisherzennn.devidiomaticbytes.com
FitPlatformsAndroid, iOS, Web, Windows, macOS, LinuxAndroid, iOS, Web, Windows, macOS, Linux
WASM-readyYesYes
KindFlutter widgetsFlutter widgets
Code generationNoNo
Direct dependencies0 (best)1
LicenseMITMIT
Setup effortLowLow
JudgementStrengths
  • Enables precise separation of paint/layout bounds from hit-test bounds.
  • Includes a built-in Dart DevTools extension for inspecting hit scopes and debugging missed taps.
  • Supports slivers via SliverHitScope for custom scroll views.
  • Simple API for outside tap detection
  • Full code coverage
Weaknesses
  • Deferred hit-testing is O(n) over registered targets on a scope, meaning large numbers of targets can affect performance.
  • Requires careful scope placement so that the HitScope's layout box actually covers the expanded hit area.
  • No longer maintained and officially deprecated
  • Rendered pointless by Flutter framework's TapRegion
WarningsNoneNone
hit vs tap_canvas: which Flutter package should you use? | pubscout