I've got a flutter web app with many different widgets.
Basically there's a sfDatagrid on the left and an hidden sfPdfViewer on the right.
When the user make a double tap on a sfDatagrid's row, if the sfPdfViewer on the right is not yet visible, the main widgets is rebuild and the sfPdfViewer is shown.
Everything works fine into the builded app, but when I test in debug mode, I've got an error as following, the app still hang and I have to stop the app.
════════ Exception caught by scheduler library ═════════════════════════════════
The following assertion was thrown during a scheduler callback:
Assertion failed:
!_debugDisposed
is not true
When the exception was thrown, this was the stack
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 251:49 throw_
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 29:3 assertFailed
packages/flutter/src/rendering/object.dart 2221:13 markNeedsPaint
packages/syncfusion_flutter_datagrid/src/datagrid_widget/widgets/rendering_widget.dart 1324:7 [_onPointerExit]
packages/flutter/src/rendering/mouse_tracker.dart 398:21
dart-sdk/lib/_internal/js_dev_runtime/private/linked_hash_map.dart 21:13 forEach
packages/flutter/src/rendering/mouse_tracker.dart 395:20 _handleDeviceUpdateMouseEvents
packages/flutter/src/rendering/mouse_tracker.dart 278:5 [_handleDeviceUpdate]
packages/flutter/src/rendering/mouse_tracker.dart 359:9
packages/flutter/src/rendering/mouse_tracker.dart 206:9 [_deviceUpdatePhase]
packages/flutter/src/rendering/mouse_tracker.dart 353:5 updateAllDevices
packages/flutter/src/rendering/binding.dart 336:7
packages/flutter/src/scheduler/binding.dart 1143:15 [_invokeFrameCallback]
packages/flutter/src/scheduler/binding.dart 1088:9 handleDrawFrame
packages/flutter/src/scheduler/binding.dart 996:5 [_handleDrawFrame]
lib/_engine/engine/platform_dispatcher.dart 1003:13 invoke
lib/_engine/engine/platform_dispatcher.dart 157:5 invokeOnDrawFrame
lib/_engine/engine.dart 440:45
════════════════════════════════════════════════════════════════════════════════
════════ Exception caught by scheduler library ═════════════════════════════════
Assertion failed:
!_debugDuringDeviceUpdate
is not true
════════════════════════════════════════════════════════════════════════════════
════════ Exception caught by scheduler library ═════════════════════════════════
Assertion failed:
!_debugDuringDeviceUpdate
is not true
I tried in different ways to edit my code, but I can't solve the problem. I also try to make a sample app to reproduce the error to send to you, but I can't reproduce the error in other app.
The error is fired by code at line 959.
I attach to this post my dart code and a screenshot of my app, hoping can help you to suggest me something to check.
This issue make me crazy in the last 4 days, so each help will be appreciated.
Attachment: files_2f5e5d35.zip
Many thanks.
I tested it and it works fine.
Regards
Peter
Hello Sangeetha, can I use your assistance with the Datagrid widget?
David,
Please include more details about your query. This would be helpful for us to serve you.