Open martipello opened 1 year ago
Seems to be when the layout isn't tall enough to scroll, could just be a race condition, when i add lots of content it seems to work fine.
final thumbSize = thumbKey.currentContext!.size;
The following _CastError was thrown during a scheduler callback: Null check operator used on a null value
When the exception was thrown, this was the stack:
(elided 3 frames from dart:async)
Flutter 3.3.10 • channel stable • https://github.com/flutter/flutter.git Framework • revision 135454af32 (7 weeks ago) • 2022-12-15 07:36:55 -0800 Engine • revision 3316dd8728 Tools • Dart 2.18.6 • DevTools 2.15.0
Seems to be when the layout isn't tall enough to scroll, could just be a race condition, when i add lots of content it seems to work fine.
final thumbSize = thumbKey.currentContext!.size;
The following _CastError was thrown during a scheduler callback: Null check operator used on a null value
When the exception was thrown, this was the stack:
0 _FlexibleScrollbarState.calculateScrollAreaFields (package:flexible_scrollbar/src/flexible_scrollbar.dart:412:46)
1 _FlexibleScrollbarState.build.. (package:flexible_scrollbar/src/flexible_scrollbar.dart:260:11)
2 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1175:15)
3 SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1113:9)
4 SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:1015:5)
8 _invoke (dart:ui/hooks.dart:150:10)
9 PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:318:5)
10 _drawFrame (dart:ui/hooks.dart:115:31)
(elided 3 frames from dart:async)
Flutter 3.3.10 • channel stable • https://github.com/flutter/flutter.git Framework • revision 135454af32 (7 weeks ago) • 2022-12-15 07:36:55 -0800 Engine • revision 3316dd8728 Tools • Dart 2.18.6 • DevTools 2.15.0