Skip to content

Add an updateCallback for SwipeableStack #64

@therealjohnsummer

Description

@therealjohnsummer

I have a suggestion but first - Thanks for a great component.

Can we add an onSwipeUpdate callback that is passed SwipeDirection and SwipeProgress or else add them to the SwipableStackController ?

These values should be part of the controller so that the controller can be used in other Widgets (I need to provide additionally animation when a card is moved).

Currently the only way to get access to these values is via the OverlayBuilder which causes rebuild issues if animation is triggered from that callback.

Ideally we should have either the SwipableStackController enriched with these values or else provide an onSwipeUpdate(properties) callback.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions