Skip to content

Exception when calling itemScrollController.scrollTo twice #171

Open
@edwin-alvarez

Description

@edwin-alvarez

is there a way to attach a hook to endScrollCallback, so I can know if the animation is done in order to prevent an issue when user calls itemScrollController.scrollTo before the previous has been completed.

NOTE: since scrollTo uses addPostFrameCallback the try is not catching the exception

void _autoScrollDaysTableSummary(int index) {
try {
itemScrollController.scrollTo(
index: index,
duration: const Duration(seconds: 2),
curve: Curves.easeInOutCubic);
} catch (e) {}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    need infoNeeds more information from the reporter.p: scrollable_positioned_listRelated to package:scrollable_positioned_list

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions