File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed
packages/wisewidgetslibrary Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 1+ ## 2.1.3
2+
3+ * Added scrollDirection to the PagedList constructor
4+
15## 2.1.2
26
37* Added invisibleItemsThreshold to the PagedList constructor
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ class PagedList<T> extends StatelessWidget {
2525 this .shimmerColor,
2626 this .shimmerHighlightColor,
2727 this .invisibleItemsThreshold = 5 ,
28+ this .scrollDirection = Axis .horizontal,
2829 });
2930
3031 /// List of items to display, usually a stream from database
@@ -76,11 +77,16 @@ class PagedList<T> extends StatelessWidget {
7677 /// The threshold for the number of invisible items to trigger fetching more data.
7778 final int invisibleItemsThreshold;
7879
80+ /// The [Axis] along which the scroll view's offset increases.
81+ /// Defaults to [Axis.vertical] .
82+ final Axis scrollDirection;
83+
7984 @override
8085 Widget build (BuildContext context) {
8186 return ValueListenableBuilder (
8287 valueListenable: controller.isLoading,
8388 builder: (context, isLoading, child) => InfiniteListView .separated (
89+ scrollDirection: scrollDirection,
8490 shrinkWrap: shrinkWrap,
8591 physics: physics,
8692 padding: padding,
Original file line number Diff line number Diff line change 11name : wisewidgetslibrary
22description : Wisemen widgets library containing platform specific widgets and other commonly useful widgets.
3- version : 2.1.2
3+ version : 2.1.3
44homepage : https://github.com/wisemen-digital/wisemen-flutter-packages/packages/wisewidgetslibrary
55repository : https://github.com/wisemen-digital/flutter-widgets-library/packages/wisewidgetslibrary
66
You can’t perform that action at this time.
0 commit comments