Commit abbed0e84152f7cb5e87d7a37592766ce6362965

Authored by wdn127929
1 parent 590a37e7

no-refresh

@@ -69,18 +69,18 @@ class _MyContactListPageState extends State<MyContactListPage> { @@ -69,18 +69,18 @@ class _MyContactListPageState extends State<MyContactListPage> {
69 .reduce((ItemPosition max, ItemPosition position) => 69 .reduce((ItemPosition max, ItemPosition position) =>
70 position.itemLeadingEdge > max.itemLeadingEdge ? position : max) 70 position.itemLeadingEdge > max.itemLeadingEdge ? position : max)
71 .index; 71 .index;
72 - int min = positon.itemPositions.value  
73 - .where((ItemPosition position) => position.itemTrailingEdge > 0)  
74 - .reduce((ItemPosition min, ItemPosition position) =>  
75 - position.itemTrailingEdge < min.itemTrailingEdge ? position : min)  
76 - .index;  
77 - print(min); 72 + // int min = positon.itemPositions.value
  73 + // .where((ItemPosition position) => position.itemTrailingEdge > 0)
  74 + // .reduce((ItemPosition min, ItemPosition position) =>
  75 + // position.itemTrailingEdge < min.itemTrailingEdge ? position : min)
  76 + // .index;
  77 + // print(min);
78 print(max); 78 print(max);
79 - if (min == 0 && widget.contacts.length > 10) {  
80 - bus.emit(  
81 - 'onrefresh_guest_list_my',  
82 - );  
83 - } 79 + // if (min == 0 && widget.contacts.length > 10) {
  80 + // bus.emit(
  81 + // 'onrefresh_guest_list_my',
  82 + // );
  83 + // }
84 84
85 if (max == widget.contacts.length - 1 && widget.contacts.length >= 10) { 85 if (max == widget.contacts.length - 1 && widget.contacts.length >= 10) {
86 //上拉加载方法,最底部 86 //上拉加载方法,最底部
@@ -71,18 +71,18 @@ class _ContactListPageState extends State<ContactListPage> { @@ -71,18 +71,18 @@ class _ContactListPageState extends State<ContactListPage> {
71 .reduce((ItemPosition max, ItemPosition position) => 71 .reduce((ItemPosition max, ItemPosition position) =>
72 position.itemLeadingEdge > max.itemLeadingEdge ? position : max) 72 position.itemLeadingEdge > max.itemLeadingEdge ? position : max)
73 .index; 73 .index;
74 - int min = positon.itemPositions.value  
75 - .where((ItemPosition position) => position.itemTrailingEdge > 0)  
76 - .reduce((ItemPosition min, ItemPosition position) =>  
77 - position.itemTrailingEdge < min.itemTrailingEdge ? position : min)  
78 - .index;  
79 - print(min); 74 + // int min = positon.itemPositions.value
  75 + // .where((ItemPosition position) => position.itemTrailingEdge > 0)
  76 + // .reduce((ItemPosition min, ItemPosition position) =>
  77 + // position.itemTrailingEdge < min.itemTrailingEdge ? position : min)
  78 + // .index;
  79 + // print(min);
80 print(max); 80 print(max);
81 - if (min == 0 && widget.contacts.length > 10) {  
82 - bus.emit(  
83 - 'onrefresh_guest_list',  
84 - );  
85 - } 81 + // if (min == 0 && widget.contacts.length > 10) {
  82 + // bus.emit(
  83 + // 'onrefresh_guest_list',
  84 + // );
  85 + // }
86 86
87 if (max == widget.contacts.length - 1 && widget.contacts.length >= 10) { 87 if (max == widget.contacts.length - 1 && widget.contacts.length >= 10) {
88 //上拉加载方法,最底部 88 //上拉加载方法,最底部