Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Smart Refresher is not working on DefaultTabController and Slivers #624

Open
venkateshsys opened this issue Feb 21, 2023 · 4 comments
Open

Comments

@venkateshsys
Copy link

venkateshsys commented Feb 21, 2023

@peng8350 Here I'm trying to add Smart Refresher on DefaultTabController and Silvers.

When I try to pull down, nothing happens on the page, there is no error in the terminal as well.

I can't able to understand whats the issue is, what am I doing wrong here.

Scaffold(
  body: SmartRefresher(
    header: const ClassicHeader(),
    footer: const ClassicFooter(),
    controller: refreshController,
    onRefresh: _onRefresh,
    onLoading: _onLoading,
    child: DefaultTabController(
      length: myTabs.length,
      child: NestedScrollView(  
        headerSliverBuilder: (context, innerBoxIsScrolled) {
          return [
            SliverToBoxAdapter(
              child: Container(
                color: Constants.surface,
                padding:
                    const EdgeInsets.symmetric(vertical: 14, horizontal: 20),
                child: const Text("Header..."),
              ),
            ),
          ];
        },
        body: TabBarView(
          controller: _tabController,
          children: const [
            CustomScrollView(
              slivers: [
                SliverToBoxAdapter(
                  child: Tab1(),
                ),
              ],
            ),
            CustomScrollView(
              shrinkWrap: true,
              slivers: [
                SliverToBoxAdapter(
                  child: Tab2(),
                ),
              ],
            ),
          ],
        ),
      ),
    ),
  ),
);
@mohamoha6200
Copy link

Same for me, any workarounds ?

@nada5un
Copy link

nada5un commented Jul 18, 2023

same me

@Myint-Zaw-Aye
Copy link

same ,not working for nestedscrollview

@mahdiqdi
Copy link

same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants