fzyzcjy / flutter_smooth

Achieve ~60 FPS, no matter how heavy the tree is to build/layout
https://fzyzcjy.github.io/flutter_smooth/
MIT License
1.54k stars 66 forks source link

CustomScrollVIew | SliverList smooth scroll #185

Open ashishpipaliya opened 1 year ago

ashishpipaliya commented 1 year ago

I came across this awesome work of yours and I can say this is great package to have.

I want to use this package with CustomScrollView , SliverList more specifically. How can I ?

I just need hint, Please take some time and help me with this

 CustomScrollView(
          slivers: [
// i want to implment smooth list for this
              child: SliverList(
                delegate: SliverChildBuilderDelegate(
                  (context, index) {
                    return ListTile(
                      title: Text('Item $index'),
                    );
                  },
                  childCount: 100,
                ),
              ),
          ],
        )
welcome[bot] commented 1 year ago

Hi! Thanks for opening your first issue here! :smile:

fzyzcjy commented 1 year ago

The changes to the flutter engine have not been merged yet, so the package cannot be used in Flutter stable (or master) currently, but only be used with a custom engine build. I will discuss more about the implementations of this later after it can be used in production :)

ashishpipaliya commented 1 year ago

Any temporary workaround to use it ??

fzyzcjy commented 1 year ago

Well, I guess no: We should never use Flutter on master branch on production apps :/ So needs to wait before the code launches on stable

a1239897580 commented 1 year ago

好吧,我想不可以:我们永远不应该在生产应用程序的主分支上使用 Flutter :/因此需要等待代码在稳定版上启动

想询问一下该pr目前的进度,如果该pr能实现所说的效果,那将很棒!

a1239897580 commented 1 year ago

目前在使用flutter3.3.10,在使用大量列表图片布局的时候gpu负载很高