How calvin-ll/reorderable works
Main Components and Architecture
[Core Library Components]
• Reorderable Base Layer
• Common Interfaces
• Drag & Drop Logic
• Collection Types
• LazyList Implementation (Column/Row)
• LazyGrid Implementation
• LazyStaggeredGrid Implementation
• Platform-Specific Implementations
• Android
• iOS
• Desktop/JVM
• Web/JS
• WebAssembly
• Demo Application
• UI Screens
• Platform-Specific Examples
Component Relationships
a) Data Flow:
• User Input → Drag Handle → Reorder Logic → Collection Update
• Collection Update → UI Refresh → Animation System
b) Dependencies:
• Platform Implementations → Core Components
• Collection Types → Reorderable Base Layer
• Demo App → All Components
Detailed Component Breakdown
[Reorderable Base Layer]
• ReorderableCollectionItemScope
• Draggable Handle Modifiers
• Animation Coordination
• State Management
[Collection Types]
• LazyList (Column/Row)
• * State Management
• * Item Reordering
• * Scroll Handling
• LazyGrid
• * Grid-specific Layout
• * Multi-dimensional Reordering
• LazyStaggeredGrid
• * Staggered Layout Support
• * Variable Size Handling
[Platform Integration]
• Native Touch Handling
• Platform-specific Animations
• Haptic Feedback
Implementation Details
Technical notes for key features:
• Drag Detection System
• Reorder Animation Control
• Scroll Behavior Management
• State Synchronization
• Platform-specific Optimizations
Integration Points
Integration interfaces:
• Public APIs
• State Holders
• Event Callbacks
• Modifier Extensions
Integration points for consuming applications
Use standardized symbols:
• Rectangles: Components
• Double Lines: API Boundaries
• Component types
• Platform-specific markers