yuni_file_list_view 0.0.8
yuni_file_list_view: ^0.0.8 copied to clipboard
A Flutter package providing flexible file list view components: grid, list, and grouped grid layouts with Sliver support.
0.0.8 #
- 🎯 YRulerScrollbar — 新增
scrollbarMarginTop/scrollbarMarginBottom:支持设定轨道的上下边距,常用于避开SliverAppBar等顶部悬浮元素,让滚动条视觉区域更精准。左侧浮动 Hint 面板同步跟随偏移,不再出现上下错位。 - 🐛 修复 YRulerScrollbar 拖拽时 Thumb 上下跳动问题:在
_onDragStart时快照_dragMaxScrollExtent,拖拽期间_dyToOffset始终使用该冻结值计算目标位置,彻底打断因SliverGrid懒加载布局造成的maxScrollExtent振荡 →jumpTo振荡的正反馈闭环。 - 🏗 YRulerScrollbar 改用
NotificationListener接收滚动数据:与 Flutter 官方RawScrollbar保持完全相同的数据获取方式,利用ScrollMetrics一致性快照(pixels / maxScrollExtent / viewportDimension同帧写入),消除controller.addListener事后读取导致三值不一致的潜在抖动。 - ✨ YRulerScrollbar 新增
nodeLabelBuilder:可完全自定义每个刻度节点的标签 Widget,替代内部 Canvas 默认文本绘制。 - 🔧 移除已无意义的
bottomHintBuilder:重新设计底部提示区域为通用 Hint 系统,保持 API 简洁。
0.0.1 #
- 🚀 Initial Release:
yuni_file_list_viewis an ultra-high performance Flutter UI package for flexible file and photo gallery layouts. - ✨ Three Core Modes: Provides
YFileGridView,YFileListView, andYFileGroupedListViewas well as theirSliverequivalents. - ⚡️ Ultimate 1D Flattening Matrix: A revolutionary implementation of Grouped Grid combining millions of items without freezing the engine nor introducing
SliverGridallocations per group. Fully preserves Lazy-Loading. - 📦 Unopinionated Builders: Pure configuration (paddings, spacings, crossAxisCount) without dictating UI constraints (colors, cards). Every shape is completely passed through required
Builders. - ✋ Drag-Select Non-intrusive Layer: Added
YDragSelectRegionandYDragSelectElementto bring zero-cost "Drag to Multi-Select & Auto-Scroll" interaction to any list, out-of-the-box.