Skip to content

Instantly share code, notes, and snippets.

@Rahiche
Created December 18, 2018 21:41
Show Gist options
  • Save Rahiche/0ed252b0d547cbe61d7537ff93afb6ad to your computer and use it in GitHub Desktop.
Save Rahiche/0ed252b0d547cbe61d7537ff93afb6ad to your computer and use it in GitHub Desktop.
NotificationListener<ScrollUpdateNotification>(
onNotification: (notification) {
if ((notification.scrollDelta < 0) && (animation.isDismissed)) {
_controller.forward();
} else if ((notification.scrollDelta > 0) &&
(animation.isCompleted)) {
_controller.reverse();
}
},
child: ListView(...)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment