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
597 stars 120 forks source link

sliverappbar高度变化 #94

Closed xxssd-awsl closed 2 years ago

xxssd-awsl commented 2 years ago

kToolbarHeight=56 status top=32.72727272727272 custom tabs height=32 加起来就是120.72727272727272

使用NestedScrollView,收缩完毕后使用LayoutBuilder获取的flexibleSpace的biggest.height是120.72727272727272

使用ExtendedNestedScrollView,收缩完毕后使用LayoutBuilder获取的flexibleSpace的biggest.height是120.72727272727283

j787701730 commented 2 years ago

这个误差好像会引起windows桌面端SliverAppBar的elevation失效(好像触发不了).

final double pinnedHeaderHeight =
        //statusBar height
        statusBarHeight +
            //pinned SliverAppBar height in header
            kToolbarHeight -
            0.1;

减去0.1之后. elevation效果就出来了. 测试了安卓模拟器的减不减0.1, elevation都正常.

zmtzawqlp commented 2 years ago

double 精度问题