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

Got NaN exception when first time scrolling to beginning or end of list #173

@JmyW

Description

@JmyW

It's happened the following exception at first time scrolling to beginning or end of list.

Steps:

  1. When scroll list is appeared.
  2. Swipe right to scroll to the beginning of list
    or Swipe left to scroll to the end of list
  3. Got the following NaN exception

════════ Exception caught by scheduler library ═════════════════════════════════════════════════════
The following UnsupportedError was thrown during a scheduler callback:
Unsupported operation: Infinity or NaN toInt

When the exception was thrown, this was the stack:
#0 double.toInt (dart:core-patch/double.dart:192:36)
#1 double.round (dart:core-patch/double.dart:160:34)
#2 _PositionedListState._schedulePositionNotificationUpdate. (package:scrollable_positioned_list/src/positioned_list.dart:334:26)
#3 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1116:15)
#4 SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1063:9)
...
════════════════════════════════════════════════════════════════════════════════════════════════════

Metadata

Metadata

Assignees

Labels

SPL-bounds issuesScrollablePositonedList problems with list positioning when go outside the bounds of the listSPL-scroll to endp: scrollable_positioned_listRelated to package:scrollable_positioned_list

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions