From 83a776fc249be5d2dd6fc0d77e6e6b45c9e052a3 Mon Sep 17 00:00:00 2001 From: v_szheshi Date: Wed, 18 Dec 2024 18:04:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=A4=9A=E5=B1=82=E5=BC=B9?= =?UTF-8?q?=E6=A1=86=EF=BC=8C=E6=BB=91=E5=8A=A8=E6=97=A0=E6=B3=95=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E9=A2=9C=E8=89=B2=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lib/src/components/picker/td_multi_picker.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tdesign-component/lib/src/components/picker/td_multi_picker.dart b/tdesign-component/lib/src/components/picker/td_multi_picker.dart index fd3243249..83cf7fdbe 100644 --- a/tdesign-component/lib/src/components/picker/td_multi_picker.dart +++ b/tdesign-component/lib/src/components/picker/td_multi_picker.dart @@ -293,16 +293,19 @@ class TDMultiPicker extends StatelessWidget { childCount: data[position].length, builder: (context, index) { return Container( + key: UniqueKey(), alignment: Alignment.center, height: pickerHeight / pickerItemCount, width: maxWidth, child: TDItemWidget( index: index, + key: UniqueKey(), itemHeight: pickerHeight / pickerItemCount, content: data[position][index], itemDistanceCalculator: itemDistanceCalculator, fixedExtentScrollController: controllers[position], - )); + ) + ); })), )); }