gskinner / gskinner/flutter_animate
Make it easier to set ScrollAdapter begin/end relative to a specific widget
Open
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.