elva_scroll_view 0.0.7
elva_scroll_view: ^0.0.7 copied to clipboard
A Flutter package for nested scrolling with coordinated scrolling and inertial scrolling transfer capabilities.
Elva Scroll View #
A Flutter package for nested scrolling with coordinated scrolling and inertial scrolling transfer capabilities.
Features #
- Nested Scrolling: Support for multi-level nested scroll views with smooth coordination
- Inertial Scrolling Transfer: Inertial scrolling animations can be transferred across multiple scroll components
- Shell Mode: Prevent scroll offset from propagating upward for independent scroll areas
- Builder Pattern: Easy integration into existing code
- Custom Notifications: Rich scroll event notifications
Installation #
dependencies:
elva_scroll_view: ^0.0.4
Quick Start #
Basic Usage #
Wrap your CustomScrollView with ElvaScrollViewBuilder:
ElvaScrollViewBuilder(
builder: (context, controller) {
return CustomScrollView(
controller: controller,
slivers: [
SliverAppBar(...),
SliverList(...),
],
);
}
)
Shell Mode #
Use isShell parameter to create independent scroll areas:
ElvaScrollViewBuilder(
isShell: true,
builder: (context, controller) {
return CustomScrollView(
controller: controller,
slivers: [...]
);
}
)
Documentation #
For detailed API documentation and implementation principles, visit GitHub.
Example #
See the example directory for a complete example application.
License #
MIT