Skip to content

How to use PrimaryScrollController in HookWidget #338

@dodatw

Description

@dodatw

I am using scrollControll by

    final scrollController = useScrollController()

But I have a case that I need use PrimaryScrollController. (tap status bar to trigger scroll-to-top)

    final scrollController = PrimaryScrollController.of(context);

Can it be used in HookWidget? Is there any best practice for this case ?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions