flutter bug

The following _CastError was thrown building:
type ‘_InternalLinkedHashMap<String, dynamic>’ is not a subtype of type ‘SquadCommunityModel’ in type cast

When the exception was thrown, this was the stack:
#0 _CastListBase.[] (dart:_internal/cast.dart:99:46)
#1 _CommunityPageState.build. (package:app/pages/home/community_page.dart:114:68)
#2 SliverChildBuilderDelegate.build (package:flutter/src/widgets/sliver.dart:455:22)
#3 SliverMultiBoxAdaptorElement._build (package:flutter/src/widgets/sliver.dart:1201:28)
#4 SliverMultiBoxAdaptorElement.createChild. (package:flutter/src/widgets/sliver.dart:1214:55)

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐