silvernoo
V2EX  ›  Flutter

flutter 怎么释放事件

  •  
  •   silvernoo ·
    silvernoo · May 19, 2020 · 3239 views
    This topic created in 2321 days ago, the information mentioned may be changed or developed.
    写了一个控件,外层是一个 scrollview 。内部控件在接收到事件以后,某些情况下不需要消费事件,而把事件传递给父容器 scrollview 。

    类似 Android 中的 return false 。接收事件用的是 gesturedetector 。

    求大佬指点。或者给个文章我去学习学习
    1 replies  •  2020-05-20 02:31:07 +08:00
    fescover
        1
    fescover  
       May 20, 2020
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   834 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 21:37 · PVG 05:37 · LAX 14:37 · JFK 17:37
    ♥ Do have faith in what you're doing.