StatefulWidget刷新数据问题 2021-05-10 本文已影响0人 cc05b52e9552 刷新数据setState,如果不设置key,子widget不会执行initState。解决方案使用widget获取属性值。widget.contentType