gskinner / gskinner/flutter_animate

Make it easier to set ScrollAdapter begin/end relative to a specific widget

Open
#26 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Dart
Stars
1.1k
Forks
103
PR merge metrics
No merged PRs in 30d

Description

When creating scroll driven animations, it is often a lot easier to set anchor points relative to an element in the scroll region (versus absolute pixel values). This is especially true with dynamic or responsive content.

Quick sketch follows for illustration, naming and implementation specifics TBD.

```
ScrollAdapter(
begin: ScrollAdapter.getPosition(myWidget, alignment: Alignment.center, offset: Offset(y: -100),
...
)
```

The above would set the begin property to 100px above the middle of `myWidget`.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.