flutter报错 setState() or markNeedsBuild() called during build.
报错代码,是因为在ListTitle里调用了跳转的代码
.
需要改成
即需要在调用函数前加()=>即可