Open ghost opened 3 years ago
我在SmartRefresher
外面嵌套了一个Container
然后抛出了断言
The following assertion was thrown building Container:
Don't use one refreshController to multiple SmartRefresher,It will cause some unexpected bugs mostly in TabBarView
'package:pull_to_refresh/src/smart_refresher.dart':
Failed assertion: line 608 pos 12: '_refresherState == null'
我在
SmartRefresher
外面嵌套了一个Container
然后抛出了断言The following assertion was thrown building Container: Don't use one refreshController to multiple SmartRefresher,It will cause some unexpected bugs mostly in TabBarView 'package:pull_to_refresh/src/smart_refresher.dart': Failed assertion: line 608 pos 12: '_refresherState == null'
我发现了不能把 SmartRefresher 嵌套在Container
之类的 StatelessWidget
里 我写了一个StatefulWidget
就可以了。
但是notice.md又是这样说的
我要在滑动组件的上面始终覆盖一个组件不跟随滑动 比如
回到顶部