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
keyboard_dismisser

A Flutter widget to hide the keyboard when performing gestures outside of it.

pub.devRemove
ScoresHealth68 (best)50
Maintenance55 (best)0
Quality97100 (best)
Popularity5685 (best)
Community41 (best)11
Compatibility100100
UsageDownloads (30 days)4.7k30k (best)
Likes54247 (best)
Pub points160 / 160160 / 160
GitHub stars5050
MaintenanceLatest release1.2.4, 4 months ago (best)3.0.0, 5 years ago
Major versions in 12 months10 (best)
Contributors12 (best)
Publisherzennn.devUnverified
FitPlatformsAndroid, iOS, Web, Windows, macOS, LinuxAndroid, iOS, Web, Windows, macOS, Linux
WASM-readyYesYes
KindFlutter widgetsFlutter widgets
Code generationNoNo
Direct dependencies00
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.
  • Supports multiple gestures at the same time, including directional swipes.
  • Can wrap the entire app or individual pages easily.
  • Lightweight and straightforward to use.
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.
  • Limited to gesture-based keyboard dismissal.
  • Not documented for handling advanced custom focus nodes explicitly.
WarningsNoneNone
hit vs keyboard_dismisser: which Flutter package should you use? | pubscout