v0.1.0scroll_snap_effect
簡単なスクロールスナップ効果を作成するためのFlutterパッケージ
26いいね 1630日間ダウンロード150Pub ポイント
AndroidiOSWebmacOSWindowsLinux
ListView で簡単なアニメーションスクロールスナップ効果を作成するためのFlutterパッケージ
以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。
A Flutter package to create easy animation scroll snap effect in ListView
// Example itemSize
// itemSize = child width (ex: 100) + child padding (ex: 16);
// itemSize = 116
ScrollSnapEffect(
itemSize: 116,
itemCount: 15,
padding: const EdgeInsets.symmetric(horizontal: 20),
onChanged: (index) {
debugPrint('$index');
},
itemBuilder: (context, index) {
return Padding(
padding: const EdgeInsets.only(right: 16),
child: SizedBox(
height: 100,
width: 100,
child: ColoredBox(
color: Colors.blue,
child: Center(
child: Text(
'$index',
style: const TextStyle(
color: Colors.white,
fontSize: 20,
),
),
),
),
),
);
},
),
Farhan Fadila
📫 How to reach me: farhan.fadila1717@gmail.com
依存関係一覧 3 件
{"sdk":"flutter"}{"sdk":"flutter"}^1.0.0用途で絞り込み、開発状況を比較し、採用前に元のリポジトリで要件を確認しましょう。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗
