FLUTTER ECOSYSTEM

anchor_scroll_controller

This package implement a ScrollController which supports anchor. That is, AnchorScrollController supports to scroll to index and listen to index changed while scrolling by user.

anchor_scroll_controller cover
Latest version
0.4.4
30-day downloads
4.3K
Likes
48
Pub points
160

Package Overview

Selection guidance generated from public package information. For reference only.

Overview

The anchor_scroll_controller package provides a ScrollController that supports anchoring, enabling precise scrolling to specific indices and listening to index changes during user-driven scrolling. It enhances scroll interactions by allowing developers to track and respond to the current visible item in a scrollable list, making it ideal for scenarios like navigation menus, infinite lists, or synchronized UI elements. Built with cross-platform support, it works seamlessly across Android, iOS, Web, macOS, Windows, and Linux.

Use cases
  • Scrolling to specific list items
  • Tracking visible index during user scroll
  • Synchronizing scroll position with UI elements
  • Building navigation menus with scroll awareness
  • Implementing infinite scroll with anchor tracking
Key features
  • Supports scrolling to index
  • Listens to index changes during scroll
  • Cross-platform compatibility
  • Easy integration with ListView or Scrollable widgets
  • Provides smooth anchor-based scrolling
Suitable for
  • Developers building scroll-aware UIs
  • Apps requiring precise scroll positioning
  • Navigation systems tied to scroll state
  • Infinite or dynamic list implementations
Considerations
  • Requires manual handling of anchor logic
  • May need additional state management
  • Not suitable for simple static scrolling
  • Performance impact with very large lists
  • Limited to indexed scrollable content
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add anchor_scroll_controller

Categories

Source repository

Related projects

No data available yet.