fix: fix typo and add code in-line block. (#2)
ScrollKit provides additional features for list in Flutter Apps.
jumpTo(int index)
scrollTo (int index)
Element
RenderObject
jumpTo
scrollTo
SmartRefresher
scroll_kit: ^0.1.0
final scrollView = CustomScrollView( slivers: [ SKSliverList( delegate: SKSliverChildBuilderDelegate((c, i) { if (i % 2 == 0) { return Container( height: 100, child: Text(i.toString()), color: Colors.grey, margin: EdgeInsets.only(top: 3), ); } else { return Container( height: 100, child: Text(i.toString()), color: Colors.red, margin: EdgeInsets.only(top: 3), ); } }, onAppear: (i) { print("Appear: " + i.toString()); }, onDisAppear: (i) { print("Disappear: " + i.toString()); }, reuseIdentifier: (i) { if (i % 2 == 0) { return "type1"; } else { return "type2"; } }, childCount: 100)) ], );
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802032778号
ScrollKit
ScrollKit provides additional features for list in Flutter Apps.
Features
jumpTo(int index)with a high performance.scrollTo (int index).Elementand theRenderObjectof the list item.jumpTo,scrollTowith compatibility of refresh components (SmartRefresher).Getting started
Usage
Reference
Contributing