I have a DataModelBuilder with a list of ids, each id is them mapped to a model class. Like this:
DataModelBuilder<List<FollowsModel>>{
stream: getBloc(context).getFollowerHander.stream;
dataBuilder: (context, dataModel){
if(success){
return ListView.builder(
itemCount: dataModel.data.length,
itemBuilder: (context, index){
return DataModelBuilder<UserProfileModel>(
stream: getBloc(context).getUserProfileHandler.stream;
dataModel : (context, dataModel){
.
.
.
}
)
}
);
}
}
}
Now the problem is I am getting two list tiles which is exactly the number of users following, but the username is for one user. I want the name of each user to appear separately on each tile.