CopyPastor

Detecting plagiarism made easy.

Score: 0.9584823951697556; Reported for: String similarity Open both answers

Possible Plagiarism

Reposted on 2019-05-16
by Dmitriy Blokhin

Original Post

Original - Posted on 2019-05-16
by Dmitriy Blokhin



            
Present in both answers; Present only in the new answer; Present only in the old answer;

[Solution][1] of this problem.
> `ListView`, and `ScrollViews` in general, tend to dispose of the children that are not currently visible on the screen. When we try to scroll back to the child, the child is reinitialized from scratch. But in this case, our child is a FutureBuilder; re-initializing it creates a progress indicator again just for a part of a second, then creates the page once again. This confuses the scrolling mechanism, throwing us around in non-deterministic ways.
and: >we will prevent `ListView` from disposing of the children. In order to do that, we need to wrap each child  —  that is, each `FutureBuilder`, with an `AutomaticKeepAliveClientMixin` [1]: https://medium.com/saugo360/flutter-creating-a-listview-that-loads-one-page-at-a-time-c5c91b6fabd3#a358
[Solution][1] of this problem.
> `ListView`, and `ScrollViews` in general, tend to dispose of the children that are not currently visible on the screen. When we try to scroll back to the child, the child is reinitialized from scratch. But in this case, our child is a FutureBuilder; re-initializing it creates a progress indicator again just for a part of a second, then creates the page once again. This confuses the scrolling mechanism, throwing us around in non-deterministic ways.
[1]: https://medium.com/saugo360/flutter-creating-a-listview-that-loads-one-page-at-a-time-c5c91b6fabd3#a358


        
Present in both answers; Present only in the new answer; Present only in the old answer;