Skip to content

Commit

Permalink
修改多层弹框,滑动无法选择颜色问题
Browse files Browse the repository at this point in the history
  • Loading branch information
v_szheshi committed Dec 18, 2024
1 parent 4dd5022 commit 83a776f
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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],
));
)
);
})),
));
}
Expand Down

0 comments on commit 83a776f

Please sign in to comment.