extended_nested_scroll_view icon indicating copy to clipboard operation
extended_nested_scroll_view copied to clipboard

ExtendedNestedScrollView overscroll blocks scrolling until the scroll offset reaches back to zero

Open kuikuiGe opened this issue 8 months ago • 0 comments

Same problem as the official one: flutter/issue:When increase the headerSliver height from 600 to 1200 to hide the body off-screen.Immediately scroll back after over-scrolling and notice the scroll getting stuck for small moments.

Code sample

class Demo extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: ExtendedNestedScrollView(
        headerSliverBuilder: (context, innerBoxIsScrolled) {
          return [
            SliverToBoxAdapter(
              child: Container(
                height: 1200,
                width: double.infinity,
                decoration: const BoxDecoration(
                  gradient: LinearGradient(
                    colors: [Colors.green, Colors.yellow],
                    begin: Alignment.topCenter,
                    end: Alignment.bottomCenter,
                  ),
                ),
              ),
            ),
          ];
        },
        body: SingleChildScrollView(
          child: Container(
            height: 100,
            width: double.infinity,
            color: Colors.blue,
          ),
        ),
      ),
    );
  }
}

kuikuiGe avatar Aug 05 '25 12:08 kuikuiGe