Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Ruben Vereecken
    @rubenvereecken
    @EdsonBueno You're amazing for getting back to me so quickly. I'm not, but I am using an Expanded TabBarView inside a Column which is the parent of the PagedListView... does that count?
    I've not worked with slivers much, happy to dig in if that's the promising route
    Ruben Vereecken
    @rubenvereecken
    (On another but interesting note, pagingController doesn't work as a getter - I'd put the logic in a mixin. Needs to be a property, I assume this is a ValueNotifier thing)
    Edson Bueno
    @EdsonBueno
    Are you using shrinkWrap: true in your PagedListView?
    I'll need a simplified version of your code to help you more than this
    Ruben Vereecken
    @rubenvereecken

    Are you using shrinkWrap: true in your PagedListView?

    I'm not, no

    Don't worry, don't want you to have to solve all of my issues, just wanted to know what was expeted behaviour. I'll take a closer look and if I still can't turn anything up or I find something relevant to the library I'll report back
    (might be a while though)
    Ruben Vereecken
    @rubenvereecken
    This really is a great library
    Edson Bueno
    @EdsonBueno
    Nice! Thank you @rubenvereecken
    sm2017
    @sm2017
    Do you have any sticky header example? I want to have a side sticky, In a chat view I want to stick avatar of user
    Edson Bueno
    @EdsonBueno
    @sm2017 No, I don't! I'm sorry
    Benjamin Liii
    @SeasonLeee
    @EdsonBueno hi... I have some provider package related questions....
    Benjamin Liii
    @SeasonLeee
    Could anyone provide a working example of this package with provider?
    help... I'm in agony...
    heshesh2010
    @heshesh2010
    Hi @EdsonBueno
    I'm try to using dynamic TabBar based on response from my API server , i got two tabs every tabs i'm using on it your inifinte_scroll plugin .. I have used controller refresh method , but i got two tabs with same List items
    heshesh2010
    @heshesh2010
                              Container(
                                child: FutureBuilder<List<Category>>(
                                  future: _con.getRestaurantFoodsCategories(),
                                  builder: (c, s) {
                                    if (s.hasData) {
                                      List<Tab> tabs = new List<Tab>();
    
                                      for (int i = 0; i < s.data.length; i++) {
                                        tabs.add(Tab(
                                          child: Text(
                                            s.data[i].name,
                                            style:
                                                TextStyle(color: Colors.black),
                                          ),
                                        ));
                                      }
                                      TabController tabController =
                                          new TabController(
                                              vsync: this, length: tabs.length);
                                      tabController.addListener(() {
                                        updateSearchTerm(
                                            s.data[tabController.index].id);
                                      });
                                      return Container(
                                        height: 500,
                                        child: new MaterialApp(
                                          debugShowCheckedModeBanner: false,
                                          home: new Scaffold(
                                              appBar: new AppBar(
                                                backgroundColor: Theme.of(
                                                        context)
                                                    .scaffoldBackgroundColor,
                                                title: Padding(
                                                  padding: const EdgeInsets
                                                          .symmetric(
                                                      horizontal: 20),
                                                  child: ListTile(
                                                    dense: true,
                                                    contentPadding:
                                                        EdgeInsets.symmetric(
                                                            vertical: 0),
                                                    leading: Icon(
                                                      Icons.restaurant,
                                                      color: Theme.of(context)
                                                          .hintColor,
                                                    ),
                                                    title: Text(
                                                      S
                                                          .of(context)
                                                          .food_categories,
                                                      style: Theme.of(context)
                                                          .textTheme
                                                          .display1,
                                                    ),
                                                  ),
                                                ),
                                                bottom: new TabBar(
                                                  controller: tabController,
                                                  labelColor: Colors.black,
                                                  isScrollable: true,
                                                  tabs: List<Widget>.generate(
                                                      s.data.length,
                                                      (int index) {
    updateSearchTerm(int searchTerm) {
    _con.idOfCategory = searchTerm;
    _con.pagingFoodsController.refresh();
    print(searchTerm);
    }
    Edson Bueno
    @EdsonBueno
    Hi @heshesh2010 , your code is really hard to understand. Can you provide us a running example?
    heshesh2010
    @heshesh2010
    Hi , ok I will
    heshesh2010
    @heshesh2010
    here is my videos shows my app problem
    i hope this clear to u
    heshesh2010
    @heshesh2010
    @EdsonBueno
    Edson Bueno
    @EdsonBueno
    @heshesh2010 I replied you in the issue
    rajada1
    @rajada1
    Hello can I share my problem around here?
    Edson Bueno
    @EdsonBueno
    Hi @rajada1 , yes, please
    rajada1
    @rajada1
    I am working with tabs. For each tab I add an addPageRequestListener.
    The problem occurs when I advance to the next pages of a tab, and returned to another tap, then to the next page for the next magina, he makes several calls to the api.
    image.png
    rajada1
    @rajada1
    @EdsonBueno hi ?
    Siqlain Hanif
    @Siqlain-Hanif
    Hi @EdsonBueno man thanks for this beautiful library it helps a lot. There is one thing that I am not able to figure listed in this issue [Github]flutter/flutter#42159 .
    Any suggestion to fix this behavior
    Edson Bueno
    @EdsonBueno
    Hi @Siqlain-Hanif ,
    As this is a Flutter issue, I can't do much about it :(
    None of the fixes suggested in the comments work?
    Siqlain Hanif
    @Siqlain-Hanif
    @EdsonBueno sorry was away for a while, yeah nothing from the suggested works but what i did is cached all the children of listview that are lazily loading through pagination. Means at some point we will have a heap/memory overflow but we are going for this, until flutter fixes that one or we can fix it in some other way
    azharmughal007
    @azharmughal007
    Hi , can I share my problem here ?

    _pagingController.addPageRequestListener((pageKey) {
    print("Listener Added");
    });

    I have added same Listener at multiple screens but with some screens its not working even its not adding PageReqesutListener .
    Whats the solution ??

    Edson Bueno
    @EdsonBueno
    hey @azharmughal007 ,
    your listener won't be called as soon as you add it. it's only called when the PagedListView is on screen and needs a new page.
    azharmughal007
    @azharmughal007
    Thanks , It works .
    Tom Sawyer
    @Ufoaz1Al_twitter
    When I use the "noItemsFoundIndicatorBuilder," it has intrinsic height of the entire screen. I want it to have 0 height and have tried building a widget with 0 height. However, it still somehow has full height. Is there any way to show a Container with 0 height that doesn't expand to fill the entire space for the indicator builder?
    Here's my code:
    CustomScrollView(
    controller: widget.scrollController,
    reverse: true,
    slivers: [
    PagedSliverList(
    pagingController:
    context.read<MessagePagination>().pagingController,
    builderDelegate: PagedChildBuilderDelegate<ChatMessage>(
    firstPageProgressIndicatorBuilder: () =>
    CustomLoadingSkeleton(type: "image-skeleton"),
    newPageProgressIndicatorBuilder: (
    ) =>
    CustomLoadingSkeleton(type: "image-skeleton"),
    noItemsFoundIndicatorBuilder: (_) => Container(
    constraints: BoxConstraints.tight(Size(0, 0)),
    padding: EdgeInsets.all(0),
    color: Colors.purple,
    height: 0,
    width: 0,
    ),
    itemBuilder: (context, item, index) {
    Tom Sawyer
    @Ufoaz1Al_twitter
    Actually just figured it out! Just needed to set "shrinkWrapFirstPageIndicators" to true
    Chang Lan
    @changlan
    hey @EdsonBueno just wanted to follow up on EdsonBueno/infinite_scroll_pagination#112
    Chang Lan
    @changlan
    Here is a video that shows ListView works: https://youtu.be/8kZv2KxoesU
    Chang Lan
    @changlan
    @EdsonBueno
    Edson Bueno
    @EdsonBueno
    Hey @changlan . Please, read everything I replied to you
    Chang Lan
    @changlan
    @EdsonBueno Please don't make assumptions. AutomaticKeepAliveClientMixin works but it's suboptimal. The issue of AutomaticKeepAliveClientMixin is that it keeps widget in the memory, causing uncessary resource cost when there is a large number of items. ListView with PageStorageKey does not need to keep all the items alive.
    Chang Lan
    @changlan
    I appreciate your time spent on this issue btw. Just wanted to understand why PagedListView behaves differently than ListView.
    Akshay Anand
    @mrid_boy_twitter
    Hi @EdsonBueno had a doubt regarding the pagination functionality when there are only few items to be displayed (the total count of items is only 3 which is why I am considering the first API call itself to have the last set of items ). My issue is very similar to EdsonBueno/infinite_scroll_pagination#30 where in there are two network calls taking place even though I am using the appendLastPage() function. Was wondering if there is something I am missing here
    thanks!