Skip to content

PlatformException error on flutter version 3.32.0 #83

@nsfoxer

Description

@nsfoxer

问题

最新版本flutter无法正常使用该组件:

	CodeEditor()

环境

  • Flutter 3.32.0
  • re_editor: ^0.7.0

错误:

[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>

如果将readOnly设置为true,则不会出现错误。我认为是_code_input.dart:432函数内部的问题,但没有能力继续确认,希望作者大大修复一下。

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions