Skip to content

[Bug]: onScrolled not being fired #55

Closed
@jorgelrj

Description

@jorgelrj

Contact Details

No response

What happened?

The onScrolled callback is not firing anymore after the recent updates

child: NotificationListener<ScrollEndNotification>(
        onNotification: (dynamic notification) {
          if (widget.options.onScrolled != null &&
              notification is ScrollUpdateNotification) {
            widget.options.onScrolled!(_carouselState!.pageController!.page);
          }
          return false;
        },
        child: wrapper, // The child widget (carousel)
      ),

The notification listener is filtering by ScrollEndNotification notifications only

Version

^3.0.1

What devices are you seeing the problem on?

Android, iPhone, Windows, Mac, Linux

OS

all

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions