【发布时间】:2018-12-13 10:37:12
【问题描述】:
我正在阅读此文档页面:https://docs.flutter.io/flutter/painting/TextSpan/recognizer.html。
此页面中包含的示例是 StatefulWidget,文档中显示为 The code that owns the GestureRecognizer object must call GestureRecognizer.dispose when the TextSpan object is no longer used.。
我想知道我是否可以在 StatelessWidget 中使用TextSpan 的recognizer?
如果是这样,我需要在某处致电dispose 吗?我不知道在哪里称呼它。
非常感谢。
【问题讨论】:
标签: flutter