How can I implement pagingation with compose manua...
# compose
a
How can I implement pagingation with compose manually, without library ?
a
Hi Abdo… why you want to make that android team provide paging library whatever Philip lackner made tutorial you can see it ->

https://youtu.be/D6Eus3f6U9I

Happy coding
a
@Adel Ayman Thanks, because I am using an architecture that doesn't allow me to use this library.
t
I edited that on my phone so hopefully it makes sense, and hopefully it gives you some ideas
m
https://github.com/marenovakovic/Pagination I created this as TDD exercise and I used it without any problems, you have it covered with tests if you care about it
it’s just pagination without Compose implementation. when I used it I needed to do pagination for weeks and months so I created
WeekPager
and
MonthPager
with
MutableSharedFlow
to expose week or month that I needed
there is for example
WeekPager.loadInitialWeeks
which calls
pager.loadInitialWeeks
and get current page and just emit it from
MutableSharedFlow