════════ Exception caught by widgets library ═══════════════════════════════════════════════════════
The following RangeError was thrown building KeyedSubtree-[<0>]:
RangeError (index): Invalid value: Valid value range is empty: 0
屏幕错误一闪而过,界面随之恢复正常。
问题归总--
widget._dateList[0]; == 数据为空
------
大概率是 数据源问题, 在数据源传入的 过程中数据源为空,
解决办法----
在传入数据源的dart文件的组建中,加入 数据源判断 防止数据源传入是为空,
if(date.length>0)?cotainer("组件"):cotainer(”数据为空")
2 在Android Studio中打开terminal下,运行 flutter clean