报错The getter 'value' was called on null

来源:7-6 动画Animation开发指南-AnimatedWidget与AnimatedBuilder-1【跟着做】

叶乔

2021-03-23

图片描述
图上标红的代码报如下错误:
======== Exception caught by widgets library =======================================================
The following NoSuchMethodError was thrown building LogoApp(dirty, state: _LogoAppState#6dba8(ticker inactive)):
The getter ‘value’ was called on null.
Receiver: null
Tried calling: value

写回答

1回答

CrazyCodeBoy

2021-03-24

animation加个空判断

0
0

Flutter从入门到进阶 实战携程网App 一网打尽核心技术

解锁Flutter开发新姿势,,系统掌握Flutter开发核心技术。

4788 学习 · 3270 问题

查看课程