Flutter infinite scrolling ListView | HTTP GET

preview_player
Показать описание


⭐⭐⭐ SUPPORT ME ⭐⭐⭐

⭐⭐⭐ CONNECT WITH ME ON SOCIAL MEDIA ⭐⭐⭐

⭐⭐⭐ SETUP ⭐⭐⭐
⌨️ Keyboard: Ducky Shine 3 (brown switches)

Рекомендации по теме
Комментарии
Автор

What you think of another approach where we use index from the list builder? When the builder reaches the given index, add more items

ShashikantRudrawadi
Автор

I was searching it for last 3 days . You finally made it so simple for me . Thanks for this ♥️

aryanvikash
Автор

This is exactly what I needed. Went through a lot of materials but this is by far the best one..

dkq
Автор

pretty good! i'm developer brasil and liked this post! I did and it worked! congratulations!

williampsant
Автор

best tutorial I could find out there on this. The tutorial is simple and answers all the questions. Thank you for this.

gauravsobti
Автор

If you found this tutorial helpful, let me know, and also be sure to subscribe so you don't miss future videos!

RobertBrunhage
Автор

Great video, but can you plz give an example how to make this one with FutureBuilder, it would be great.

martinsedoo
Автор

Hi, first of all great job! I have a questions:
if i would show a CircleProgress Indicator when scroll at end of ListView and wait for new element?

Francesco-oxui
Автор

Just watched it again after sone time
This is one of the best out there🏆🏆🏆🏆

mrpakravian
Автор

Congratulations on your content, you earned +1 subscribed.
However, I would like to see an infinite scroll with at least 5 objects. I understand that your idea was only to demonstrate how it works, but if someone uses this code, it will have a DDos attack created by the flutter in its own app (imagine 50 thousand people online requesting one photo at a time, it would be more than 50 thousand requests per second, imagine the effect of this on a PHP + Mysql server as a backend!). A consistent approach would be to make a larger request, save to the database, and request the data in installments in the database when needed, but perhaps this would make the video very complicated. I'll activate the bell, and hope to see something more complex soon, I liked your channel, I'm an expert on java and kotlin, and I'm looking to flutter now.

jonnyborgesdev
Автор

just a simple quesion: each request return one image? isn't a bad practice make 5 request to get 5 images?

i know that it depends on how the api works, i got the point of infinite scrolling. nice video man

joaovirgili
Автор

Thanks for the video ... Thanks for the pagination ... thanks ...

riddhishah
Автор

The fetching is right, thank you. There is a usual mechanism to forget the upper items to release memory on long heavy lists?

sergiovelasquezzeballos
Автор

I have Future<List> postData; as variable to store response, so how can I append new List(decode response) to it. Any Idea or direction would be helpful.

yashchandraverma
Автор

fetch() method will be called 5 times don't you think it is a wastage of bandwidth. If we can load 5 items at a time and once we scroll to the end it calls for another 5 items.

SIDDARTHBHURA
Автор

it's good and all but what is the code above, what are the dependencies ?

eddydrunky
Автор

Nice! :) One question. How can i add a progress, while is loading the other images?

renzoandrecm
Автор

Can you make an example combinening this with dart diffutil?

jseh_
Автор

What about if you scroll more and more abd get more than 10000 photos it isn't good for memory!?

mahmoudsalah
Автор

Correct me if I'm wrong. When you reach the end of the scroll, fetchFive() is called multiple times before the result is received. I think you should put a boolean to mark that the request was sent, and do not send another request before the old request is received. Also, do you have a git with this project? Thank you!

valentinrusinaru
visit shbcf.ru