[ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: PlatformException(Internal Consistency Error, Set editing state has been invoked, but no client is set., null, null)
#0 JSONMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:168:7)
#1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:370:18)
<asynchronous suspension>
[ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: PlatformException(Internal Consistency Error, Set editing state has been invoked, but no client is set., null, null)
#0 JSONMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:168:7)
#1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:370:18)
<asynchronous suspension>
问题
最新版本flutter无法正常使用该组件:
CodeEditor()环境
错误:
如果将
readOnly设置为true,则不会出现错误。我认为是_code_input.dart:432函数内部的问题,但没有能力继续确认,希望作者大大修复一下。