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

type 'ExtendedRenderEditable' is not a subtype of type 'RenderEditable?' in type cast #190

Open
hello-soon opened this issue Feb 6, 2023 · 9 comments

Comments

@hello-soon
Copy link

hello-soon commented Feb 6, 2023

ios报异常

flutter 3.3.5. /packages/flutter/lib/src/widgets/editable_text.dart
image

type 'ExtendedRenderEditable' is not a subtype of type 'RenderEditable?' in type cast

image

@zmtzawqlp
Copy link
Member

看看那 flutter 对应的版本,去changelog里面查看下

@hello-soon
Copy link
Author

extended_text_field 用的是 10.2.0

packages/flutter/lib/src/widgets/editable_text.dart

RenderEditable? get renderEditable => widget.editableKey.currentContext?.findRenderObject() as RenderEditable?;

commit id: af89a25e
Re-land "Support Scribble Handwriting" (#96615) (#97437)

@zmtzawqlp
Copy link
Member

demo

@hello-soon
Copy link
Author

本地没有复现。firebase收集上来的。
从代码上看,extended_text_field 的 ExtendedRenderEditable,是没有继承RenderEditable的。

@zmtzawqlp
Copy link
Member

本地没有复现。firebase收集上来的。 从代码上看,extended_text_field 的 ExtendedRenderEditable,是没有继承RenderEditable的。

就不是一个东西呢。。这个是官方源码里面的呢? 怎么会去找 三方的?

@hello-soon
Copy link
Author

本地没有复现。firebase收集上来的。 从代码上看,extended_text_field 的 ExtendedRenderEditable,是没有继承RenderEditable的。

就不是一个东西呢。。这个是官方源码里面的呢? 怎么会去找 三方的?

只有ipad才报这个错误

image

@WWLy
Copy link

WWLy commented Apr 11, 2023

有结论了吗, 我也遇到了相同的问题, 只在 iPad 上出现
截屏2023-04-11 17 31 06

@connerjson
Copy link

connerjson commented Jun 10, 2023

相同的问题,只在iPad上出现,我的extended_text_field版本号是11.0.1
WeChatc27c3d3bc0d9f781f5f808cb9de9ce59
WeChatba8a42a7ee3718850c505ed6a5eff001

@zmtzawqlp
Copy link
Member

请用最新的分支试试,最新的版本 同步了官方的代码

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

4 participants