Skip to content
This repository was archived by the owner on Oct 13, 2025. It is now read-only.

Commit e33d0f0

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

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/scrollable_positioned_list/lib/src/positioned_list.dart

Lines changed: 1 addition & 0 deletions
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)