Flutter Tutorial - Adding Pagination with a NotificationListener widget and ScrollNotifications

preview_player
Показать описание
#Flutter #TensorProgramming #FlutterPagination

In this Tutorial, we look at how to implement Pagination in a simple API BLoC example. We use a Notification Listener Widget and Scroll Notifications to accomplish this task. We also use Bloc, Provider and RxDart in this example.

Good Programming Laptops:

Support the Channel and Join Patreon:

Dontate:
ETH: 0x03247265dd5242605bD2FA3c40fb3b70d9e3D685
Cardano: addr1q9auccwrr9ws8qdyv45f4qwsx76pfmld4zapks89sakq94ay0xmle73y0r8ruwd0zslls4eglf98lghru7ywv56cedysk7ftjt

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

your videos are the absolute best. solving useful problems with elegant solutions and clear explanations.

jonathanmiller
Автор

Hey man, you're a real life saver. Great video here, keep up the good work!
Don't you have any discord server that I could join??

divyanshmaheshwari
Автор

Great video as always we missed your flutter videos even for a little short while as it is always educative. this topic was on my mind the last few days and i am shock you addressed it on clean and clear matter. so i have one request and one question. can we have a tutorial on rxdart (i mean deep one explaining core and advance use cases) as still this one of the challenging topics in dart to use. also none related question if i have an old project made with scooped model and currently after the Provider package came it is much easier to use. what if i want to use Provider in that project? should i add it on top as a parent to the Scoped model "will be there performance issue or any other issue" or i have to convert all project to Provider to use it? (Which i don't want to because it is a lot to do) ... simply put can i use both Scoped model and Provider on same project?

KsAmJ
Автор

Thank you for the video. Would you show later how to use together? or redux + redux remote devtools.

fhxopcd
Автор

finally excellent english. I'm so done listening indian accent almost every fucking tutorial...

mr.hashford
Автор

Hi tensor great tutorial. I'm really struggling with state management particularly using the 'provider' pubspec package. Can you go over an example.

ignitedcms
Автор

Hi Tensor, thanks for the videos. However, data duplicates, when you click on a list item(i created a Details screen for list items), navigate to the details screen, then press the back button on appbar to return to the main screen which has the infinite loop. The first stream of results get shown twice. Do you know what the issue?

atehrosius
Автор

Thank you, I was stucked at futurebuilder's trouble with large data. So I paginated my api to response page by page. But when I get last page it goes on and gets 404 error. Error handling is not my solution, I want my app to know it is the last page?? In ur example we cant see because 5000 is too big to try.

mkroven
Автор

Do you share your VSCode config anywhere?

jonathanmiller
Автор

Please can you do an example using a gridview

codewiki
Автор

I realized that "onNotification" is called many times for a single scroll gesture. Is that right?

erivanbarbosa
Автор

hey Tensor... the code run well on android emulator ... but i tried it on an iphone simulator it does work... onNotification at the end of the 50 items does not trigger a new call to the api... "bloc.sink.add(scrollInfo)" is never called ...

MlgTheUno
Автор

can you please share for the same in with firestore please

hurbes
Автор

When i clear the photos at the beginning of the build function and I navigate to another page the data starts from the last one but the past one is erased. I am using a page controller to navigate between pages

codewiki
Автор

Little bug here...Navigating from a page with the infinite scroll, and back to the page, automatically pushes pageNumber to 2 and displays only pageNumber 2 results.

ericel
join shbcf.ru