v2.0.0animated_item_picker
単一または複数のアイテム選択ロジックをカプセル化する汎用アイテムピッカー。
kirn-tech/animated_item_picker open-source repository details.
以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。
Generic item picker that encapsulates single or multiple item selection logic.
Suitable for fixed size item lists, e.g level, week day or gender selector etc.
Supports tapUp/tapDown item opacity animation.

@override
Widget build(BuildContext context) {
return AnimatedItemPicker(
axis: Axis.horizontal,
multipleSelection: false,
itemCount: yourModelList.length,
pressedOpacity: 0.85,
initialSelection: {defaultItemIndex},
onItemPicked: (index, selected) {
},
itemBuilder: (index, animValue, selected) => _YourItemWidget(
name: yourModelList[index].name,
borderColor: _colorTween1.transform(animValue),
textColor: _colorTween2.transform(animValue),
iconColor: _colorTween3.transform(animValue)
),
);
}
Often a user has to make a choice in an application, eg. gender, difficulty level, or switch a tab, etc. You can agree that well-designed animated item selection will make your UI look more intuitively with enhanced User Experience.
We at KiRN tech use this element so often that we decided to create a separate package for it.
Here we'll walk through the base stages of this package creation:
More: https://kirn.tech/article-flutteranimation-animated-item-picker
依存関係一覧 2 件
{"sdk":"flutter"}{"sdk":"flutter"}用途で絞り込み、開発状況を比較し、採用前に元のリポジトリで要件を確認しましょう。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗