8000 when data count is small · Issue #37 · peng8350/flutter_pulltorefresh · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

when data count is small #37

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ChendayUP opened this issue Jan 3, 2019 · 8 comments
Closed

when data count is small #37

ChendayUP opened this issue Jan 3, 2019 · 8 comments

Comments

@ChendayUP
Copy link

No description provided.

@ChendayUP ChendayUP changed the title when data when data count is small Jan 3, 2019
@ChendayUP
Copy link
Author

wechat0ce03f226237fda27733ee3d121c5f37

@Purus
Copy link
Purus commented Feb 3, 2019

There can be an option to hide it when count is less than a desired number.

@morad00
Copy link
morad00 commented Feb 23, 2019

@ChendayUP add this line at the first of your _footerCreate widget
if(yourList.length < smallAmountOfItmes && mode == 0 ) return Container();

@peng8350
Copy link
Owner

The most important problem is how to get the height of all items in ListView. If this problem is solved, it will be easy.

@peng8350
Copy link
Owner

Suggest


    //100.0 indicate that your item height
     double innerListHeight= _data.length*100.0;
      double listHeight = bc.biggest.height;

   new SmartRefresher( 
       enablePullUp: innerListHeight>listHeight
      .....
   )

@peng8350
Copy link
Owner

I couldn't get the actual height of ListView inside my control before the interface was rendered. If I wanted to do this, I would have to render the interface twice, which would result in #28.

@jaime1990
Copy link

Suggest


    //100.0 indicate that your item height
     double innerListHeight= _data.length*100.0;
      double listHeight = bc.biggest.height;

   new SmartRefresher( 
       enablePullUp: innerListHeight>listHeight
      .....
   )

然而,如上设置并不起效。 不知各位大佬还有其他良策?

@peng8350
Copy link
Owner
peng8350 commented Jun 9, 2019

@jaime1990 我在1.4.2已经干掉你先前的问题的了,已去掉计算头部高度

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants
0