flutter-in-action icon indicating copy to clipboard operation
flutter-in-action copied to clipboard

The method 'call' was called on null.

Open mxpasser opened this issue 4 years ago • 3 comments

状态管理章节,按照示例代码跑了一遍,_handleTap方法报错了。 ════════ Exception caught by gesture ═══════════════════════════════════════════════════════════════ The following NoSuchMethodError was thrown while handling a gesture: The method 'call' was called on null. Receiver: null Tried calling: call(true)

image

mxpasser avatar Jun 23 '20 08:06 mxpasser

我也遇到了 版本信息如下: ➜ first_flutter_app flutter --version Flutter 1.14.6 • channel unknown • unknown source Framework • revision fabeb2a16f (5 个月前) • 2020-01-28 07:56:51 -0800 Engine • revision c4229bfbba Tools • Dart 2.8.0 (build 2.8.0-dev.5.0 fc3af737c7)

不知道你解决没?

andyli386 avatar Jul 01 '20 04:07 andyli386

我也遇到了 版本信息如下: ➜ first_flutter_app flutter --version Flutter 1.14.6 • channel unknown • unknown source Framework • revision fabeb2a16f (5 个月前) • 2020-01-28 07:56:51 -0800 Engine • revision c4229bfbba Tools • Dart 2.8.0 (build 2.8.0-dev.5.0 fc3af737c7)

不知道你解决没?

@andyli386 木有,刚开始看flutter这玩意,有些地方还有点整不明白。然后记录了这个问题,就继续看后面的章节了。。 等过段时间回头在去研究一下,你要是解决的话,到时候分享一些解决方法哈。。😄

Flutter 1.17.3 • channel stable • https://github.com/flutter/flutter.git Framework • revision b041144f83 (4 weeks ago) • 2020-06-04 09:26:11 -0700 Engine • revision ee76268252 Tools • Dart 2.8.4

mxpasser avatar Jul 01 '20 09:07 mxpasser

估计可能是新旧版本的问题

andyli386 avatar Jul 01 '20 12:07 andyli386