How to listen focus change in flutter?

后端 未结 3 1207
轻奢々
轻奢々 2021-02-02 05:50

In Android, we can call setOnFocusChangeListener(), do something in onFocusChanged() method, but flutter does not provider onFocus() inter

3条回答
  •  独厮守ぢ
    2021-02-02 06:36

    I suppose you are looking for FocusNode class. Use addListener method to add a listener function that listens to focus change.

提交回复
热议问题