Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CastError,type 'Null' is not a subtype of type 'Block' in type cast #1248

Closed
kotadakku opened this issue Jun 1, 2023 · 0 comments
Closed

Comments

@kotadakku
Copy link

kotadakku commented Jun 1, 2023

My issue is about [Mobile]
An error occurs when pressing and holding the delete button on the keyboard

Full log error
======== Exception caught by services library ======================================================
The following _CastError was thrown during method call TextInputClient.updateEditingState:
type 'Null' is not a subtype of type 'Block' in type cast

When the exception was thrown, this was the stack:
#0 Document.queryChild (package:flutter_quill/src/models/documents/document.dart:186:28)
#1 Document.collectStyle (package:flutter_quill/src/models/documents/document.dart:157:17)
#2 QuillController.getSelectionStyle (package:flutter_quill/src/widgets/controller.dart:98:10)
#3 QuillController.replaceText (package:flutter_quill/src/widgets/controller.dart:219:21)
#4 RawEditorStateTextInputClientMixin.updateEditingValue (package:flutter_quill/src/widgets/raw_editor/raw_editor_state_text_input_client_mixin.dart:188:25)
#5 TextInput._updateEditingValue (package:flutter/src/services/text_input.dart:2029:43)
#6 TextInput._handleTextInputInvocation (package:flutter/src/services/text_input.dart:1854:29)
#7 TextInput._loudlyHandleTextInputInvocation (package:flutter/src/services/text_input.dart:1753:20)
#8 MethodChannel._handleAsMethodCall (package:flutter/src/services/platform_channel.dart:555:55)
#9 MethodChannel.setMethodCallHandler. (package:flutter/src/services/platform_channel.dart:548:34)
#10 _DefaultBinaryMessenger.setMessageHandler. (package:flutter/src/services/binding.dart:393:35)
#11 _invoke2 (dart:ui/hooks.dart:183:13)
#12 _ChannelCallbackRecord.invoke (dart:ui/channel_buffers.dart:40:5)
#13 _Channel.push (dart:ui/channel_buffers.dart:130:31)
#14 ChannelBuffers.push (dart:ui/channel_buffers.dart:326:17)
#15 PlatformDispatcher._dispatchPlatformMessage (dart:ui/platform_dispatcher.dart:664:22)
#16 _dispatchPlatformMessage (dart:ui/hooks.dart:86:31)
call: MethodCall(TextInputClient.updateEditingState, [4, {selectionBase: 0, selectionExtent: 0, composingBase: -1, text:
, composingExtent: -1}])

@singerdmx singerdmx closed this as not planned Won't fix, can't repro, duplicate, stale Jul 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants