fluttercandies / extended_nested_scroll_view

extended nested scroll view to fix following issues. 1.pinned sliver header issue 2.inner scrollables in tabview sync issue 3.pull to refresh is not work. 4.do without ScrollController in NestedScrollView's body
MIT License
591 stars 117 forks source link

如果body设置固定高度,用户的需求是,拉倒body的高度就停止,但是目前并不是这样,而是留有大量空白区域 #103

Closed RmondJone closed 2 years ago

RmondJone commented 2 years ago
ExtendedNestedScrollView(
                        key: scrollKey,
                        headerSliverBuilder: (BuildContext c, bool f) {
                          return [
                            //刷新视图
                            PullToRefreshContainer(
                              (PullToRefreshScrollNotificationInfo? info) {
                                return SliverToBoxAdapter(
                                  child: PullToRefreshHeader(
                                      info: info,
                                      lastRefreshTime: _lastDateTime),
                                );
                              },
                            ),
                            SliverToBoxAdapter(
                              child: shoppingCartIsNotEmpty
                                  ? renderShoppingCartList(model)
                                  : renderShoppingCartEmpty(),
                            )
                          ];
                        },
                        onlyOneScrollInBody: true,
                        body: Column(
                          children: [
                            Container(
                              decoration: BoxDecoration(color: Colors.red),
                              height: 50,
                            )
                          ],
                        ),
                      )

zmtzawqlp commented 2 years ago

as design