fix bug:android emulator

This commit is contained in:
yifeng.yl
2019-01-10 11:13:13 +08:00
parent 71292363a3
commit dad3e040d4
5 changed files with 28 additions and 14 deletions

View File

@ -28,7 +28,7 @@ class _CateCardState extends State<CateCard> {
Cat childCateCondition = new Cat(parentId: parentId);
List<Cat> list = await catControl.getList(childCateCondition);
if (list.isNotEmpty&&list.length>=1) {
if (list.isNotEmpty&&list.length>=1 && this.mounted) {
setState(() {
_firstChildList = list;
});