Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributefocus_on_it

Get notified when a Flutter widget is focused or unfocused and react to it.

pub.devRemove
touchable_opacity

A widget that animates the opacity of its child on touch events, similar to React Native.

pub.devRemove
ScoresHealth50 (best)44
Maintenance1 (best)0
Quality100 (best)91
Popularity62 (best)48
Community46 (best)11
Compatibility93100 (best)
UsageDownloads (30 days)11k (best)6.8k
Likes49 (best)17
Pub points160 / 160 (best)140 / 160
GitHub stars1314 (best)
MaintenanceLatest release2.0.1, 3 years ago (best)1.2.0, 6 years ago
Major versions in 12 months00
Contributors22
Publisherluanemanuel.com.brUnverified
FitPlatformsAndroid, iOS, Windows, macOS, LinuxAndroid, iOS, Web, Windows, macOS, Linux
WASM-readyNoYes
KindFlutter widgetsFlutter widgets
Code generationNoNo
Direct dependencies20 (best)
LicenseMITBSD-2-CLAUSE
Setup effortLowLow
JudgementStrengths
  • Offers 13 different events including focus, visibility, and app lifecycle changes.
  • Successor to the unmaintained Focus Detector package with modern AppLifecycleListener support.
  • Supports Android, iOS, Windows, macOS, and Linux.
  • Easy to drop in and use similarly to other Flutter widgets.
  • Supports customizable active opacity values.
  • Maintains standard GestureDetector behaviors and interactions.
Weaknesses
  • Requires a minimum Dart SDK of 3.1.0 and Flutter 3.13.0+.
  • Web testing requires setting a specific environment variable (--dart-define=TEST=true).
  • Fills its parent by default, requiring a layout widget to bound its size to its child.
  • Not documented with any advanced features beyond basic opacity animation.
WarningsNoneNone
focus_on_it vs touchable_opacity: which Flutter package should you use? | pubscout