Closed
Description
版本信息
- Flutter版本:v3.24.4
- flutter_smart_dialog版本:v4.9.6
描述bug/需求
type 'Null' is not a subtype of type 'RenderBox' in type cast
嗯……看起来是因为上图中138行 widget.targetContext!.findRenderObject() 为null 引起的,没有稳定复现,这里如果把判断改为:
if (widget.targetContext != null && widget.targetContext!.findRenderObject() != null) { .... }
会有什么问题吗?