fluttercandies / flutter_scrollview_observer

A widget for observing data related to the child widgets being displayed in a ScrollView. Maintainer: @LinXunFeng
https://pub.dev/packages/scrollview_observer
MIT License
451 stars 46 forks source link

[Bug report] Null check operator used on a null value #62

Closed coolight7 closed 1 year ago

coolight7 commented 1 year ago

Version

1.18.0

Platforms

dart

Device Model

win 11

flutter info

Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.13.9, on Microsoft Windows [版本 10.0.22621.2428], locale zh-CN)
[√] Windows Version (Installed version of Windows is version 10 or higher)

How to reproduce?

Logs

[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Null check operator used on a null value
#0      Element.widget (package:flutter/src/widgets/framework.dart:3360:31)
#1      _NotificationElement.onNotification (package:flutter/src/widgets/notification_listener.dart:128:46)
#2      _NotificationNode.dispatchNotification (package:flutter/src/widgets/framework.dart:3196:18)
#3      _NotificationNode.dispatchNotification (package:flutter/src/widgets/framework.dart:3199:13)
#4      Element.dispatchNotification (package:flutter/src/widgets/framework.dart:4762:24)
#5      Notification.dispatch (package:flutter/src/widgets/notification_listener.dart:60:13)
#6      ObserverControllerForScroll._handleScrollInterruption (package:scrollview_observer/src/common/observer_controller.dart:1073:46)
#7      ObserverControllerForScroll._handleScrollToIndex (package:scrollview_observer/src/common/observer_controller.dart:622:7)
#8      ObserverControllerForScroll._handleScrollToIndex.<anonymous closure> (package:scrollview_observer/src/common/observer_controller.dart:738:9)
#9      SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1297:15)
#10     SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1236:9)

Example code (optional)

No response

Contact

No response

LinXunFeng commented 1 year ago

感谢老铁的反馈与支持,已发布 1.18.1 修复该问题