計画
AnimatedListこんにちは、 Flutter の使い方を学んでいます。を使用して、リストに要素を追加および削除できましたSizeTransition。
コード
Widget _buildItem(
BuildContext context, int index, Animation<double> animation) {
return SizeTransition(
sizeFactor: animation,
axis: Axis.vertical,
child: Padding(
padding: const EdgeInsets.all(8.0),
child: Container(
height: 50,
color: Colors.orange,
child: SizedBox(
child: Center(
child: Text(displayList[index].toString()),
),
),
),
),
);
}
このトランジションにカスタム カーブを追加する方法がわかりません。これは可能ですか?