letsar / flutter_sticky_header

Flutter implementation of sticky headers for sliver
MIT License
907 stars 174 forks source link

Console has error output when scroll the CustomScrollView with SliverStickyHeader #87

Open ericwangjp opened 1 year ago

ericwangjp commented 1 year ago

environment: Flutter 3.3.8 • channel stable • https://github.com/flutter/flutter.git Framework • revision 52b3dc25f6 (7 weeks ago) • 2022-11-09 12:09:26 +0800 Engine • revision 857bd6b74c Tools • Dart 2.18.4 • DevTools 2.15.0

error info:

======== Exception caught by rendering library =====================================================
The following assertion was thrown during performLayout():
'package:flutter/src/rendering/sliver_list.dart': Failed assertion: line 315 pos 14: 'estimatedMaxScrollOffset >= endScrollOffset - childScrollOffset(firstChild!)!': is not true.

Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
  https://github.com/flutter/flutter/issues/new?template=2_bug.md