xxxxxxxxxx
// Using https://pub.dev/packages/visibility_detector (maintained by google)
VisibilityDetector(
key: Key("unique key"),
onVisibilityChanged: (VisibilityInfo info) {
debugPrint("${info.visibleFraction} of my widget is visible");
},
child: MyWidgetToTrack());
)