Skip to content

Commit e33d0f0

Browse files
authored
Check for non-finite item offset (#435)
1 parent 1e9f446 commit e33d0f0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/scrollable_positioned_list/lib/src/positioned_list.dart

+1
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,7 @@ class _PositionedListState extends State<PositionedList> {
345345
} else {
346346
final itemOffset =
347347
box.localToGlobal(Offset.zero, ancestor: viewport).dx;
348+
if (!itemOffset.isFinite) continue;
348349
positions.add(ItemPosition(
349350
index: key.value,
350351
itemLeadingEdge: (widget.reverse

0 commit comments

Comments
 (0)