Coder Social home page Coder Social logo

Comments (4)

TianbinTobin avatar TianbinTobin commented on May 13, 2024 1

@hyjfine 还是没懂造成这个问题的原因,在不用fish_redux时,两个EditAbleText同样是参数focusNode: FocusNode(),也是每次update都是new 一个新的FocusNode 实例吧?,但是并没有造成同时出现两个光标,但是用fish_redux为什么会造成这个问题呢?

from fish-redux.

hyjfine avatar hyjfine commented on May 13, 2024

EditableText不提供焦点控制,这里其实用TextField会好些
/// This widget interacts with the [TextInput] service to let the user edit the
/// text it contains. It also provides scrolling, selection, and cursor
/// movement. This widget does not provide any focus management (e.g.,
/// tap-to-focus).

from fish-redux.

hyjfine avatar hyjfine commented on May 13, 2024

问题是focusNode引起的,下班开始仔细看了2个小时,最后断点发现EditableText的_handleSelectionChanged在切换焦点时会丢失一个。同样的例子不用fish_redux是ok的。所以应该是fish_redux细节没用对,仔细一看EditableText的FocusNode是每次update都会实例化的,而这个应该是要state传过来才是科学的。

from fish-redux.

andyxiaoxi avatar andyxiaoxi commented on May 13, 2024

我也出现这个问题了,感觉很疑惑

from fish-redux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.