|
...
|
...
|
@@ -69,18 +69,18 @@ class _MyContactListPageState extends State<MyContactListPage> { |
|
|
|
.reduce((ItemPosition max, ItemPosition position) =>
|
|
|
|
position.itemLeadingEdge > max.itemLeadingEdge ? position : max)
|
|
|
|
.index;
|
|
|
|
int min = positon.itemPositions.value
|
|
|
|
.where((ItemPosition position) => position.itemTrailingEdge > 0)
|
|
|
|
.reduce((ItemPosition min, ItemPosition position) =>
|
|
|
|
position.itemTrailingEdge < min.itemTrailingEdge ? position : min)
|
|
|
|
.index;
|
|
|
|
print(min);
|
|
|
|
// int min = positon.itemPositions.value
|
|
|
|
// .where((ItemPosition position) => position.itemTrailingEdge > 0)
|
|
|
|
// .reduce((ItemPosition min, ItemPosition position) =>
|
|
|
|
// position.itemTrailingEdge < min.itemTrailingEdge ? position : min)
|
|
|
|
// .index;
|
|
|
|
// print(min);
|
|
|
|
print(max);
|
|
|
|
if (min == 0 && widget.contacts.length > 10) {
|
|
|
|
bus.emit(
|
|
|
|
'onrefresh_guest_list_my',
|
|
|
|
);
|
|
|
|
}
|
|
|
|
// if (min == 0 && widget.contacts.length > 10) {
|
|
|
|
// bus.emit(
|
|
|
|
// 'onrefresh_guest_list_my',
|
|
|
|
// );
|
|
|
|
// }
|
|
|
|
|
|
|
|
if (max == widget.contacts.length - 1 && widget.contacts.length >= 10) {
|
|
|
|
//上拉加载方法,最底部
|
...
|
...
|
|