I want to detect all clicks, scrolls, etc. There will be a counter for this. How can I do this?
My code:
return Scaffold(
body: Scrollbar(
child: Column(
children: [
Expanded(
child: CustomScrollView(
....
This answer does not solve my problem because it uses different body: https://stackoverflow.com/a/60163647/7880054
body: GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () => print('Tapped'),
child: QQBody(),
),
How can I achieve detecting all clicks & scrolls?
You can wrap your widget with a
GestureDetector
andNotificationListener<ScrollNotification>
to detect scroll changes like this: